mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-11 23:42:38 +00:00
fix test_web refactoring so that the WebMixin class isn't a TestCase
Thanks, Brian.
This commit is contained in:
parent
e13783cd6a
commit
531109e803
@ -154,7 +154,7 @@ class MyVirtualDrive(service.Service):
|
|||||||
return self._my_nodes[uri]
|
return self._my_nodes[uri]
|
||||||
return defer.maybeDeferred(_try)
|
return defer.maybeDeferred(_try)
|
||||||
|
|
||||||
class WebMixin(unittest.TestCase):
|
class WebMixin(object):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.s = MyClient()
|
self.s = MyClient()
|
||||||
self.s.startService()
|
self.s.startService()
|
||||||
@ -367,7 +367,7 @@ class WebMixin(unittest.TestCase):
|
|||||||
self.fail("%s was supposed to Error(%s), not get '%s'" %
|
self.fail("%s was supposed to Error(%s), not get '%s'" %
|
||||||
(which, code, res))
|
(which, code, res))
|
||||||
|
|
||||||
class Web(WebMixin):
|
class Web(WebMixin, unittest.TestCase):
|
||||||
def test_create(self):
|
def test_create(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user