]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
tests: fix tests to accomodate [20110611153758-92b7f-0ba5e4726fb6318dac28fb762a6512a0...
authorZooko O'Whielacronx <zooko@zooko.com>
Sat, 11 Jun 2011 16:37:41 +0000 (09:37 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Sat, 11 Jun 2011 16:37:41 +0000 (09:37 -0700)
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
src/allmydata/test/test_web.py

index e37f663833f32debc37a2815cab7be30b74d0d34..51ce3f62aeb2501de8e7939c8c91c3da634831ce 100644 (file)
@@ -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")
index 615429cbf5af3129acdde02c235f53fe638823df..915cba8a053777d8a52724af977e7721112323eb 100644 (file)
@@ -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)