test_system.py: check size in web-ui display. closes #37

This commit is contained in:
Brian Warner 2007-05-23 17:25:49 -07:00
parent 80b09b6d54
commit 83daa265ba

View File

@ -267,6 +267,7 @@ class SystemTest(testutil.SignalMixin, unittest.TestCase):
d.addCallback(lambda res: getPage(base + "vdrive/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.failUnless(">mydata567</a>" in page)
d.addCallback(_got_subdir1)
d.addCallback(lambda res: getPage(base + "vdrive/subdir1/mydata567"))