Changeset be1ebde in trunk


Ignore:
Timestamp:
2011-06-11T16:37:41Z (14 years ago)
Author:
Zooko O'Whielacronx <zooko@…>
Branches:
master
Children:
fb4dd43
Parents:
06bf0360
Message:

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

Location:
src/allmydata/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/test/test_system.py

    r06bf0360 rbe1ebde  
    11081108        def _got_subdir1(page):
    11091109            # there ought to be an href for our file
    1110             self.failUnless(("<td>%d</td>" % len(self.data)) in page)
     1110            self.failUnlessIn('<td align="right">%d</td>' % len(self.data), page)
    11111111            self.failUnless(">mydata567</a>" in page)
    11121112        d.addCallback(_got_subdir1)
  • TabularUnified src/allmydata/test/test_web.py

    r06bf0360 rbe1ebde  
    10641064                               r'<a href="%s">bar.txt</a>' % bar_url,
    10651065                               r'</td>',
    1066                                r'\s+<td>%d</td>' % len(self.BAR_CONTENTS),
     1066                               r'\s+<td align="right">%d</td>' % len(self.BAR_CONTENTS),
    10671067                               ])
    10681068            self.failUnless(re.search(get_bar, res), res)
     
    37263726                                  r'<a href="[^"]+%s[^"]+">lonely</a>' % (urllib.quote(lonely_uri),),
    37273727                                  r'</td>',
    3728                                   r'\s+<td>%d</td>' % len("one"),
     3728                                  r'\s+<td align="right">%d</td>' % len("one"),
    37293729                                  ])
    37303730            self.failUnless(re.search(get_lonely, res), res)
Note: See TracChangeset for help on using the changeset viewer.