瀏覽代碼

Drop md5: spec for now (unused and breaks int values)

Philipp Hagemeister 12 年之前
父節點
當前提交
30e9f4496b
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      test/test_download.py

+ 1 - 5
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'])