From: Brian Warner Date: Tue, 20 May 2008 18:35:47 +0000 (-0700) Subject: web: more mutable-file coverage X-Git-Tag: allmydata-tahoe-1.1.0~103 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/flags/rgr-080307.php?a=commitdiff_plain;h=b0e306a753bb4ad6f75db085c635d7e59d4e89b1;p=tahoe-lafs%2Ftahoe-lafs.git web: more mutable-file coverage --- 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