]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fix test_web refactoring so that the WebMixin class isn't a TestCase
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 10 Aug 2007 15:40:02 +0000 (08:40 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 10 Aug 2007 15:40:02 +0000 (08:40 -0700)
Thanks, Brian.

src/allmydata/test/test_web.py

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