diff --git a/src/allmydata/test/test_system.py b/src/allmydata/test/test_system.py index e37f66383..51ce3f62a 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(("%d" % len(self.data)) in page) + self.failUnlessIn('%d' % len(self.data), page) self.failUnless(">mydata567" 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 615429cbf..915cba8a0 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+', r'bar.txt' % bar_url, r'', - r'\s+%d' % len(self.BAR_CONTENTS), + r'\s+%d' % 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+', r'lonely' % (urllib.quote(lonely_uri),), r'', - r'\s+%d' % len("one"), + r'\s+%d' % len("one"), ]) self.failUnless(re.search(get_lonely, res), res)