From 39f218ab905827cd4133d448802641fe319a5930 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Thu, 9 Aug 2007 13:08:42 -0700 Subject: [PATCH] refactor test_web so that other tests can use the part of test_web that sets up a simple filesystem --- src/allmydata/test/test_web.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index fdebd933..c1977727 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -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 -- 2.45.2