Improve test_all_urls output
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 27 Aug 2014 09:35:43 +0000 (11:35 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 27 Aug 2014 09:35:43 +0000 (11:35 +0200)
test/test_all_urls.py

index b1ad30bf10ad08a19e14658a8299c006f54c03fa..5f1092939e1acb8492a2568bfca874e81964525e 100644 (file)
@@ -109,7 +109,9 @@ class TestAllURLsMatching(unittest.TestCase):
                 if type(ie).__name__ in ('GenericIE', tc['name'] + 'IE'):
                     self.assertTrue(ie.suitable(url), '%s should match URL %r' % (type(ie).__name__, url))
                 else:
-                    self.assertFalse(ie.suitable(url), '%s should not match URL %r' % (type(ie).__name__, url))
+                    self.assertFalse(
+                        ie.suitable(url),
+                        '%s should not match URL %r . That URL belongs to %s.' % (type(ie).__name__, url, tc['name']))
 
     def test_keywords(self):
         self.assertMatch(':ytsubs', ['youtube:subscriptions'])