]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
web: more mutable-file coverage
authorBrian Warner <warner@allmydata.com>
Tue, 20 May 2008 18:35:47 +0000 (11:35 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 20 May 2008 18:35:47 +0000 (11:35 -0700)
src/allmydata/test/test_web.py

index a07457b8cce165ebab81372ba5e3a9710b7c5ef2..b058dfe3c25748731fa4a4509922fdc26ce3f374 100644 (file)
@@ -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