From 4556702044952a79ba3c8770ab88da283b8bd615 Mon Sep 17 00:00:00 2001 From: david-sarah Date: Thu, 3 Jun 2010 16:21:05 -0700 Subject: [PATCH] Fix test failures in test_web caused by changes to web page titles in #1062. Also, change a 'target' field to '_blank' instead of 'blank' in welcome.xhtml. --- src/allmydata/test/test_web.py | 8 ++++---- src/allmydata/web/welcome.xhtml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index 7761065b..6faa4cb9 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -402,7 +402,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase): def test_provisioning(self): d = self.GET("/provisioning/") def _check(res): - self.failUnless('Tahoe Provisioning Tool' in res) + self.failUnless('Provisioning Tool' in res) fields = {'filled': True, "num_users": int(50e3), "files_per_user": 1000, @@ -420,7 +420,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase): d.addCallback(_check) def _check2(res): - self.failUnless('Tahoe Provisioning Tool' in res) + self.failUnless('Provisioning Tool' in res) self.failUnless("Share space consumed: 167.01TB" in res) fields = {'filled': True, @@ -460,7 +460,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase): d = self.GET("/reliability/") def _check(res): - self.failUnless('Tahoe Reliability Tool' in res) + self.failUnless('Reliability Tool' in res) fields = {'drive_lifetime': "8Y", "k": "3", "R": "7", @@ -474,7 +474,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, unittest.TestCase): d.addCallback(_check) def _check2(res): - self.failUnless('Tahoe Reliability Tool' in res) + self.failUnless('Reliability Tool' in res) r = r'Probability of loss \(no maintenance\):\s+0.033591' self.failUnless(re.search(r, res), res) d.addCallback(_check2) diff --git a/src/allmydata/web/welcome.xhtml b/src/allmydata/web/welcome.xhtml index 4c123f58..204f93e8 100644 --- a/src/allmydata/web/welcome.xhtml +++ b/src/allmydata/web/welcome.xhtml @@ -88,7 +88,7 @@

Other Resources

-
Please visit the Tahoe-LAFS home page for +
Please visit the Tahoe-LAFS home page for code updates and bug reporting.
The provisioning tool and