projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb55908
)
[test_utils] add test for option with not str value
author
Remita Amine
<remitamine@gmail.com>
Sat, 13 Aug 2016 08:53:46 +0000
(09:53 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Sat, 13 Aug 2016 08:54:12 +0000
(09:54 +0100)
test/test_utils.py
patch
|
blob
|
history
diff --git
a/test/test_utils.py
b/test/test_utils.py
index 724346886b44d0b0c823dc39ab9962138c397353..74fcf91c0cb622662d3a7c2d4985377a0ea6ce7b 100644
(file)
--- a/
test/test_utils.py
+++ b/
test/test_utils.py
@@
-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(