about summary refs log tree commit diff
path: root/test/test_download.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-06-23 18:59:01 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-06-23 18:59:01 +0200
commit828dba298328d3fd719bc9b4f076ebf5eb48c3d8 (patch)
treebec422aaf0f7451ae1029588beae9a6d81c640ce /test/test_download.py
parent6b3f5a329bc1d1f91655d37222253de2d71fad96 (diff)
downloadyoutube-dl-828dba298328d3fd719bc9b4f076ebf5eb48c3d8.tar.gz
youtube-dl-828dba298328d3fd719bc9b4f076ebf5eb48c3d8.tar.xz
youtube-dl-828dba298328d3fd719bc9b4f076ebf5eb48c3d8.zip
Improvge error reporting
Diffstat (limited to 'test/test_download.py')
-rw-r--r--test/test_download.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_download.py b/test/test_download.py
index 577bcdbf2..84b3204fe 100644
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -129,7 +129,7 @@ def generator(test_case):
                     if isinstance(value, compat_str) and value.startswith('md5:'):
                         self.assertEqual(value, 'md5:' + md5(info_dict.get(info_field)))
                     else:
-                        self.assertEqual(value, info_dict.get(info_field))
+                        self.assertEqual(value, info_dict.get(info_field), u'invalid value for field ' + info_field)
 
                 # If checkable fields are missing from the test case, print the info_dict
                 test_info_dict = dict((key, value if not isinstance(value, compat_str) or len(value) < 250 else 'md5:' + md5(value))