1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-06 01:21:22 +00:00

Merge pull request #2960 from codesparkle/fix-test-format-note-regex

[test] fixed typo in test_format_note (test_YoutubeDL)
This commit is contained in:
Sergey M. 2014-05-25 05:36:03 +07:00
commit 9eeb7abc6b

View file

@ -67,7 +67,7 @@ class TestFormatSelection(unittest.TestCase):
downloaded = ydl.downloaded_info_dicts[0] downloaded = ydl.downloaded_info_dicts[0]
self.assertEqual(downloaded['ext'], 'mp4') self.assertEqual(downloaded['ext'], 'mp4')
# No prefer_free_formats => prefer mp4 and flv for greater compatibilty # No prefer_free_formats => prefer mp4 and flv for greater compatibility
ydl = YDL() ydl = YDL()
ydl.params['prefer_free_formats'] = False ydl.params['prefer_free_formats'] = False
formats = [ formats = [
@ -279,7 +279,7 @@ class TestFormatSelection(unittest.TestCase):
self.assertEqual(ydl._format_note({}), '') self.assertEqual(ydl._format_note({}), '')
assertRegexpMatches(self, ydl._format_note({ assertRegexpMatches(self, ydl._format_note({
'vbr': 10, 'vbr': 10,
}), '^x\s*10k$') }), '^\s*10k$')
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()