[generic] Add a test case for direct links with broken HEAD (#4032)

This commit is contained in:
Philipp Hagemeister 2014-10-26 20:49:51 +01:00
parent 579657ad87
commit 70b7e3fbb6
3 changed files with 28 additions and 1 deletions

View file

@ -8,6 +8,7 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from test.helper import (
assertGreaterEqual,
expect_warnings,
get_params,
gettestcases,
expect_info_dict,
@ -100,6 +101,7 @@ def generator(test_case):
if status['status'] == 'finished':
finished_hook_called.add(status['filename'])
ydl.add_progress_hook(_hook)
expect_warnings(ydl, test_case.get('expected_warnings', []))
def get_tc_filename(tc):
return tc.get('file') or ydl.prepare_filename(tc.get('info_dict', {}))