From 8a3cb60bf744e424d2040e82303ef662b7517166 Mon Sep 17 00:00:00 2001
From: david-sarah <david-sarah@jacaranda.org>
Date: Sun, 16 Jan 2011 22:05:40 -0800
Subject: [PATCH] Test changes to take account of ref #1311.

---
 src/allmydata/test/test_runner.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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
-- 
2.45.2