1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-11-23 13:46:53 +01:00

[test_utils] add test for option with not str value

This commit is contained in:
Remita Amine 2016-08-13 09:53:46 +01:00
parent cb55908e51
commit 5f2c2b7936

View File

@ -968,6 +968,7 @@ The first line
self.assertEqual(cli_option({'proxy': '127.0.0.1:3128'}, '--proxy', 'proxy'), ['--proxy', '127.0.0.1:3128'])
self.assertEqual(cli_option({'proxy': None}, '--proxy', 'proxy'), [])
self.assertEqual(cli_option({}, '--proxy', 'proxy'), [])
self.assertEqual(cli_option({'retries': 10}, '--retries', 'retries'), ['--retries', '10'])
def test_cli_valueless_option(self):
self.assertEqual(cli_valueless_option(