Fixed broken report of untested URLs in tests.py

- Legacy-Id: 401
This commit is contained in:
Henrik Levkowetz 2007-06-15 12:02:05 +00:00
parent 6a2c3ab85f
commit e044b6e228

View file

@ -139,7 +139,7 @@ class UrlTestCase(TestCase):
#self.assertEqual(set(patterns), set(covered), "Not all the
#application URLs has test cases. The missing are: %s" % (list(set(patterns) - set(covered))))
if not set(self.patterns) == set(covered):
print "Not all the application URLs has test cases. The missing are: \n %s" % ("\n ".join(list(set(patterns) - set(covered))))
print "Not all the application URLs has test cases. The missing are: \n %s" % ("\n ".join(list(set(self.patterns) - set(covered))))
else:
print "All the application URL patterns seem to have test cases."
#print "Not all the application URLs has test cases."