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*

This commit is contained in:
Zooko O'Whielacronx 2007-12-17 18:51:16 -07:00
parent 36e8e4e561
commit ea43753386
2 changed files with 6 additions and 5 deletions

View File

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

View File

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