From: david-sarah Date: Mon, 17 Jan 2011 06:05:40 +0000 (-0800) Subject: Test changes to take account of ref #1311. X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/pb.xhtml?a=commitdiff_plain;h=8a3cb60bf744e424d2040e82303ef662b7517166;p=tahoe-lafs%2Ftahoe-lafs.git Test changes to take account of ref #1311. --- diff --git a/src/allmydata/test/test_runner.py b/src/allmydata/test/test_runner.py index b8aa298d..5d55fcb3 100644 --- a/src/allmydata/test/test_runner.py +++ b/src/allmydata/test/test_runner.py @@ -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