summaryrefslogtreecommitdiffhomepage
path: root/test/test_download.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2013-01-25 16:54:25 +0100
committerPhilipp Hagemeister <[email protected]>2013-01-25 16:54:25 +0100
commit30e9f4496b7261526d753f54fa00fd5fedcefb05 (patch)
tree3981ca98daa87fbbbc5468f9e6ff3035682b4344 /test/test_download.py
parent6df40dcbe0a0d6889fffbdc1dd7bf14452d3a605 (diff)
downloadyoutube-dl-30e9f4496b7261526d753f54fa00fd5fedcefb05.tar.gz
youtube-dl-30e9f4496b7261526d753f54fa00fd5fedcefb05.zip
Drop md5: spec for now (unused and breaks int values)
Diffstat (limited to 'test/test_download.py')
-rw-r--r--test/test_download.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/test_download.py b/test/test_download.py
index 5877c42b3..14ac511d2 100644
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -107,11 +107,7 @@ def generator(test_case):
with io.open(tc['file'] + '.info.json', encoding='utf-8') as infof:
info_dict = json.load(infof)
for (info_field, value) in tc.get('info_dict', {}).items():
- if value.startswith('md5:'):
- md5_info_value = hashlib.md5(info_dict.get(info_field, '')).hexdigest()
- self.assertEqual(value[3:], md5_info_value)
- else:
- self.assertEqual(value, info_dict.get(info_field))
+ self.assertEqual(value, info_dict.get(info_field))
finally:
for tc in test_cases:
_try_rm(tc['file'])