fix test_web refactoring so that the WebMixin class isn't a TestCase

Thanks, Brian.
This commit is contained in:
Zooko O'Whielacronx 2007-08-10 08:40:02 -07:00
parent e13783cd6a
commit 531109e803

View 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