From ea437533866e45fff7f54ddf1a01d768d8b34228 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Mon, 17 Dec 2007 18:51:16 -0700 Subject: [PATCH] fix unit tests to assert that we do *not* link to start.html when there is no private dir, instead of asserting that we *do* --- docs/configuration.txt | 2 +- src/allmydata/test/test_web.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/configuration.txt b/docs/configuration.txt index ddce76fa..4686663d 100644 --- a/docs/configuration.txt +++ b/docs/configuration.txt @@ -63,7 +63,7 @@ possibly more reliable) limit, use a symlink to place the 'storage/' directory on a separate size-limited filesystem, and/or use per-user OS/filesystem quotas. -my_private_dir.uri (optional): When you create a new tahoe client, this +my_private_dir.cap (optional): When you create a new tahoe client, this file is created with no contents (as an empty file). When the node starts up, it will inspect this file. If the file doesn't exist then nothing will be done. If the file exists, then the node will try to read the contents of diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index c878383e..2cc6c797 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -258,10 +258,11 @@ class Web(WebMixin, unittest.TestCase): return self.GET("/") d.addCallback(_check) def _check2(res): - self.failUnless('To view your personal private non-shared' in res) - self.failUnless('from your local filesystem:' in res) - self.failUnless(os.path.abspath('web/test_welcome/private/start.html') - in res) + # We shouldn't link to the start.html page since we don't have a + # private directory cap. + self.failIf('To view your personal private non-shared' in res) + self.failIf('from your local filesystem:' in res) + self.failIf(os.path.abspath('web/test_welcome/private/start.html') in res) d.addCallback(_check2) return d -- 2.45.2