]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Test changes to take account of ref #1311.
authordavid-sarah <david-sarah@jacaranda.org>
Mon, 17 Jan 2011 06:05:40 +0000 (22:05 -0800)
committerdavid-sarah <david-sarah@jacaranda.org>
Mon, 17 Jan 2011 06:05:40 +0000 (22:05 -0800)
src/allmydata/test/test_runner.py

index b8aa298d2a7ccd0bfb75026956f5d5e45f0a76eb..5d55fcb33a43712b634eac0313ababcdb6d8ac4a 100644 (file)
@@ -210,9 +210,9 @@ class CreateNode(unittest.TestCase):
             self.failUnless(os.path.exists(tahoe_cfg))
             content = open(tahoe_cfg).read()
             if kind == "client":
-                self.failUnless("\n[storage]\nenabled = false\n" in content)
+                self.failUnless(re.search(r"\n\[storage\]\n#.*\nenabled = false\n", content), content)
             else:
-                self.failUnless("\n[storage]\nenabled = true\n" in content)
+                self.failUnless(re.search(r"\n\[storage\]\n#.*\nenabled = true\n", content), content)
                 self.failUnless("\nreserved_space = 1G\n" in content)
 
         # creating the node a second time should be rejected