]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[test_download] Fix order when testing file's md5
authorTithen-Firion <tithen.firion.0@gmail.com>
Thu, 27 Apr 2017 09:04:21 +0000 (11:04 +0200)
committerSergey M <dstftw@gmail.com>
Thu, 27 Apr 2017 15:27:34 +0000 (22:27 +0700)
test/test_download.py

index 0e9f293b5dc61f86e734e2b3d1971cbcfba64c95..209f5f6d673c00c77e040430fda4b5d9b87f9c13 100644 (file)
@@ -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'