mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +00:00
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:
parent
9ac5c14037
commit
39f218ab90
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user