From 30178305a5679c7d5d028c4aa5651d02d869d05b Mon Sep 17 00:00:00 2001 From: peugeot Date: Fri, 26 Dec 2014 17:01:22 +0100 Subject: [PATCH] Update test_download.py it's more intuitive to have the diff that follows the exception in this order: -expected_md5 +current_md5 and it becomes consistent with the one that's given at test_download.py:207 "expect_info_dict(self, tc.get('info_dict', {}), info_dict)" for the description --- test/test_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_download.py b/test/test_download.py index a009aa475..2c53c80ea 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -196,7 +196,7 @@ def generator(test_case): format_bytes(got_fsize))) if 'md5' in tc: md5_for_file = _file_md5(tc_filename) - self.assertEqual(md5_for_file, tc['md5']) + self.assertEqual(tc['md5'], md5_for_file) info_json_fn = os.path.splitext(tc_filename)[0] + '.info.json' self.assertTrue( os.path.exists(info_json_fn),