From be1ebde6e5db1faeb8833b707da0f25f26b0a0b2 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx <zooko@zooko.com> Date: Sat, 11 Jun 2011 09:37:41 -0700 Subject: [PATCH] tests: fix tests to accomodate [20110611153758-92b7f-0ba5e4726fb6318dac28fb762a6512a003f4c430] Apparently none of the two authors (stercor, terrell), three reviewers (warner, davidsarah, terrell), or one committer (me) actually ran the tests. This is presumably due to #20. fixes #1412 --- src/allmydata/test/test_system.py | 2 +- src/allmydata/test/test_web.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/allmydata/test/test_system.py b/src/allmydata/test/test_system.py index e37f6638..51ce3f62 100644 --- a/src/allmydata/test/test_system.py +++ b/src/allmydata/test/test_system.py @@ -1107,7 +1107,7 @@ class SystemTest(SystemTestMixin, RunBinTahoeMixin, unittest.TestCase): d.addCallback(lambda res: getPage(base + public + "/subdir1")) def _got_subdir1(page): # there ought to be an href for our file - self.failUnless(("<td>%d</td>" % len(self.data)) in page) + self.failUnlessIn('<td align="right">%d</td>' % len(self.data), page) self.failUnless(">mydata567</a>" in page) d.addCallback(_got_subdir1) d.addCallback(self.log, "done with _got_subdir1") diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index 615429cb..915cba8a 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -1063,7 +1063,7 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi r'\s+<td>', r'<a href="%s">bar.txt</a>' % bar_url, r'</td>', - r'\s+<td>%d</td>' % len(self.BAR_CONTENTS), + r'\s+<td align="right">%d</td>' % len(self.BAR_CONTENTS), ]) self.failUnless(re.search(get_bar, res), res) for line in res.split("\n"): @@ -3725,7 +3725,7 @@ class Grid(GridTestMixin, WebErrorMixin, ShouldFailMixin, testutil.ReallyEqualMi r'\s+<td>', r'<a href="[^"]+%s[^"]+">lonely</a>' % (urllib.quote(lonely_uri),), r'</td>', - r'\s+<td>%d</td>' % len("one"), + r'\s+<td align="right">%d</td>' % len("one"), ]) self.failUnless(re.search(get_lonely, res), res) -- 2.45.2