summaryrefslogtreecommitdiffhomepage
path: root/test/helper.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-08-25 18:03:01 +0200
committerPhilipp Hagemeister <[email protected]>2014-08-25 18:03:01 +0200
commit0990305d2acc4c1b7869dae2773c1f24125804bd (patch)
tree629d42ba5f42c637d875299f95a864b34d27fba7 /test/helper.py
parent829476b80a86819c79511f60f4fc25f09ab186b7 (diff)
downloadyoutube-dl-0990305d2acc4c1b7869dae2773c1f24125804bd.tar.gz
youtube-dl-0990305d2acc4c1b7869dae2773c1f24125804bd.zip
[generic] Fix rss under Python 2.x and move test to extractor
Diffstat (limited to 'test/helper.py')
-rw-r--r--test/helper.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/helper.py b/test/helper.py
index 22d763860..01b11f661 100644
--- a/test/helper.py
+++ b/test/helper.py
@@ -102,7 +102,10 @@ def expect_info_dict(self, expected_dict, got_dict):
match_rex = re.compile(match_str)
self.assertTrue(
- isinstance(got, compat_str) and match_rex.match(got),
+ isinstance(got, compat_str),
+ 'Expected a %r object, but got %r' % (compat_str, type(got)))
+ self.assertTrue(
+ match_rex.match(got),
u'field %s (value: %r) should match %r' % (info_field, got, match_str))
elif isinstance(expected, type):
got = got_dict.get(info_field)