refactor test_web so that other tests can use the part of test_web that sets up a simple filesystem

This commit is contained in:
Zooko O'Whielacronx 2007-08-09 13:08:42 -07:00
parent 9ac5c14037
commit 39f218ab90

View 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