Improve test output.

This commit is contained in:
Bastian Kleineidam 2012-10-11 20:19:10 +02:00
parent bb5d867260
commit 256a08bf31

View file

@ -14,6 +14,7 @@ class _ComicTester(TestCase):
def setUp(self): def setUp(self):
self.name = self.scraperclass.get_name() self.name = self.scraperclass.get_name()
self.url = self.scraperclass.starter()
def test_comic(self): def test_comic(self):
# Test a scraper. It must be able to traverse backward for # Test a scraper. It must be able to traverse backward for
@ -43,7 +44,7 @@ class _ComicTester(TestCase):
shutil.rmtree(tmpdir) shutil.rmtree(tmpdir)
def check(self, condition, msg): def check(self, condition, msg):
self.assertTrue(condition, "%s: %s" % (self.name, msg)) self.assertTrue(condition, "%s %s %s" % (self.name, self.url, msg))
def generate_comic_testers(): def generate_comic_testers():