]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[test_download] Improve diagnostic on wrong 'id'
authorJohn Hawkinson <jhawk@mit.edu>
Sat, 8 Apr 2017 04:21:11 +0000 (00:21 -0400)
committerSergey M <dstftw@gmail.com>
Sat, 8 Apr 2017 06:07:25 +0000 (13:07 +0700)
test/test_download.py

index 01a8bcb89814a5fd450d0d9c1a7959224e37bbcb..bd9dd86e8ac1cfc9a71df9357a5353ece9a0a023 100644 (file)
@@ -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)