diff options
author | John Hawkinson <[email protected]> | 2017-04-08 00:21:11 -0400 |
---|---|---|
committer | Sergey M <[email protected]> | 2017-04-08 13:07:25 +0700 |
commit | a84da06f49c04203b9dadd0b4d4091228ca5afcd (patch) | |
tree | e440afcaf90f36856c53ddcb6f80017d6264b935 /test | |
parent | 3461f5db0615fa46c2caa393f648f1ba538d1b66 (diff) | |
download | youtube-dl-a84da06f49c04203b9dadd0b4d4091228ca5afcd.tar.gz youtube-dl-a84da06f49c04203b9dadd0b4d4091228ca5afcd.zip |
[test_download] Improve diagnostic on wrong 'id'
Diffstat (limited to 'test')
-rw-r--r-- | test/test_download.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_download.py b/test/test_download.py index 01a8bcb89..bd9dd86e8 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -11,6 +11,7 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from test.helper import ( assertGreaterEqual, expect_warnings, + expect_value, get_params, gettestcases, expect_info_dict, @@ -200,6 +201,7 @@ def generator(test_case, tname): test_case['playlist_duration_sum'], got_duration) for tc in test_cases: + expect_value(self, res_dict['id'], tc['info_dict']['id'], 'id') tc_filename = get_tc_filename(tc) if not test_case.get('params', {}).get('skip_download', False): self.assertTrue(os.path.exists(tc_filename), msg='Missing file ' + tc_filename) |