]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
refactor test_web so that other tests can use the part of test_web that sets up a...
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 9 Aug 2007 20:08:42 +0000 (13:08 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 9 Aug 2007 20:08:42 +0000 (13:08 -0700)
src/allmydata/test/test_web.py

index fdebd9333773979fe79ab3fc2af63690341d15ab..c19777275d09935a2d251fa5a65bc88c33bc28b0 100644 (file)
@@ -154,7 +154,7 @@ class MyVirtualDrive(service.Service):
             return self._my_nodes[uri]
         return defer.maybeDeferred(_try)
 
-class Web(unittest.TestCase):
+class WebMixin(unittest.TestCase):
     def setUp(self):
         self.s = MyClient()
         self.s.startService()
@@ -367,6 +367,7 @@ class Web(unittest.TestCase):
             self.fail("%s was supposed to Error(%s), not get '%s'" %
                       (which, code, res))
 
+class Web(WebMixin):
     def test_create(self):
         pass