[test_download] Improve diagnostic on wrong 'id'

This commit is contained in:
John Hawkinson 2017-04-08 00:21:11 -04:00 committed by Sergey M
parent 3461f5db06
commit a84da06f49

View File

@ -11,6 +11,7 @@
from test.helper import ( from test.helper import (
assertGreaterEqual, assertGreaterEqual,
expect_warnings, expect_warnings,
expect_value,
get_params, get_params,
gettestcases, gettestcases,
expect_info_dict, expect_info_dict,
@ -200,6 +201,7 @@ def try_rm_tcs_files(tcs=None):
test_case['playlist_duration_sum'], got_duration) test_case['playlist_duration_sum'], got_duration)
for tc in test_cases: for tc in test_cases:
expect_value(self, res_dict['id'], tc['info_dict']['id'], 'id')
tc_filename = get_tc_filename(tc) tc_filename = get_tc_filename(tc)
if not test_case.get('params', {}).get('skip_download', False): if not test_case.get('params', {}).get('skip_download', False):
self.assertTrue(os.path.exists(tc_filename), msg='Missing file ' + tc_filename) self.assertTrue(os.path.exists(tc_filename), msg='Missing file ' + tc_filename)