aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTithen-Firion <tithen.firion.0@gmail.com>2017-04-27 11:04:21 +0200
committerSergey M <dstftw@gmail.com>2017-04-27 22:27:34 +0700
commit374560f0181423be530660fd4b2e1a685e6648f8 (patch)
treeaa613b4e332b62ffec87f22bc4ddd25e90d72e2e
parentff99fe529e52b2465f1d973e69df01a6391568d6 (diff)
[test_download] Fix order when testing file's md5
-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 0e9f293b5..209f5f6d6 100644
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -225,7 +225,7 @@ def generator(test_case, tname):
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)
# Finally, check test cases' data again but this time against
# extracted data from info JSON file written during processing
info_json_fn = os.path.splitext(tc_filename)[0] + '.info.json'