diff options
author | Remita Amine <remitamine@gmail.com> | 2016-08-13 09:53:46 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2016-08-13 09:54:12 +0100 |
commit | 5f2c2b7936eb092e482309a5b9aa036028dbab2c (patch) | |
tree | ce4d92a01dfdcebcb612cad0316368f4227426cd | |
parent | cb55908e51b80d9a51664ec76dcfe05d739dadf9 (diff) |
[test_utils] add test for option with not str value
-rw-r--r-- | test/test_utils.py | 1 |
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( |