projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6df40dc
)
Drop md5: spec for now (unused and breaks int values)
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 25 Jan 2013 15:54:25 +0000
(16:54 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 25 Jan 2013 15:54:25 +0000
(16:54 +0100)
test/test_download.py
patch
|
blob
|
history
diff --git
a/test/test_download.py
b/test/test_download.py
index 5877c42b3ac57d282df52259ba4ae9b1390e0859..14ac511d27c9729c55028a81c8e3c9a60015811f 100644
(file)
--- 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():
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'])
finally:
for tc in test_cases:
_try_rm(tc['file'])