From b0e306a753bb4ad6f75db085c635d7e59d4e89b1 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 20 May 2008 11:35:47 -0700 Subject: [PATCH] web: more mutable-file coverage --- src/allmydata/test/test_web.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index a07457b8..b058dfe3 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -1125,6 +1125,12 @@ class Web(WebMixin, unittest.TestCase): self.failUnlessEqual(res, ro_uri) d.addCallback(_check_ro_uri) + # make sure we can get to it from /uri/URI + d.addCallback(lambda res: + self.GET("/uri/%s" % urllib.quote(self._mutable_uri))) + d.addCallback(lambda res: + self.failUnlessEqual(res, EVEN_NEWER_CONTENTS)) + d.addErrback(self.dump_error) return d -- 2.45.2