aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2016-08-13 09:53:46 +0100
committerRemita Amine <remitamine@gmail.com>2016-08-13 09:54:12 +0100
commit5f2c2b7936eb092e482309a5b9aa036028dbab2c (patch)
treece4d92a01dfdcebcb612cad0316368f4227426cd
parentcb55908e51b80d9a51664ec76dcfe05d739dadf9 (diff)
[test_utils] add test for option with not str value
-rw-r--r--test/test_utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index 724346886..74fcf91c0 100644
--- 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(