diff options
author | Sergey M․ <[email protected]> | 2017-08-09 22:28:19 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2017-08-09 22:28:19 +0700 |
commit | 5b232f46dcbdc805507c02edd4fd598f31d544d5 (patch) | |
tree | c7e864728fff306d5862c843bc2c7d2191302ed8 /test/test_utils.py | |
parent | 4bf22f7a1014c55e3358b5a419945071b152eafc (diff) | |
download | youtube-dl-5b232f46dcbdc805507c02edd4fd598f31d544d5.tar.gz youtube-dl-5b232f46dcbdc805507c02edd4fd598f31d544d5.zip |
[utils] Skip missing params in cli_bool_option (closes #13865)
Diffstat (limited to 'test/test_utils.py')
-rw-r--r-- | test/test_utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 7803e5bc7..2aab16b97 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -1182,6 +1182,10 @@ part 3</font></u> cli_bool_option( {'nocheckcertificate': False}, '--check-certificate', 'nocheckcertificate', 'false', 'true', '='), ['--check-certificate=true']) + self.assertEqual( + cli_bool_option( + {}, '--check-certificate', 'nocheckcertificate', 'false', 'true', '='), + []) def test_ohdave_rsa_encrypt(self): N = 0xab86b6371b5318aaa1d3c9e612a9f1264f372323c8c0f19875b5fc3b3fd3afcc1e5bec527aa94bfa85bffc157e4245aebda05389a5357b75115ac94f074aefcd |