From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Thu, 9 Aug 2007 20:08:42 +0000 (-0700)
Subject: refactor test_web so that other tests can use the part of test_web that sets up a... 
X-Git-Tag: allmydata-tahoe-0.5.0~96
X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/FOOURL?a=commitdiff_plain;h=39f218ab905827cd4133d448802641fe319a5930;p=tahoe-lafs%2Ftahoe-lafs.git

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

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