[test_download] Improve error message
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 26 Oct 2014 23:39:39 +0000 (00:39 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 26 Oct 2014 23:39:39 +0000 (00:39 +0100)
test/test_download.py

index 608e4528ed55b1bbdc60f922e3d6d50af877ad98..75e0bb2897d7809c53e9718d62ef7dedd4b44484 100644 (file)
@@ -185,7 +185,9 @@ def generator(test_case):
                         md5_for_file = _file_md5(tc_filename)
                         self.assertEqual(md5_for_file, tc['md5'])
                 info_json_fn = os.path.splitext(tc_filename)[0] + '.info.json'
-                self.assertTrue(os.path.exists(info_json_fn))
+                self.assertTrue(
+                    os.path.exists(info_json_fn),
+                    'Missing info file %s' % info_json_fn)
                 with io.open(info_json_fn, encoding='utf-8') as infof:
                     info_dict = json.load(infof)