Browse Source

[test_utils] add test for option with not str value

totalwebcasting
Remita Amine 8 years ago
parent
commit
5f2c2b7936
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      test/test_utils.py

+ 1
- 0
test/test_utils.py 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(


Loading…
Cancel
Save