fix literal comparison

This commit is contained in:
Janne Sinivirta 2018-01-10 11:17:04 +02:00
parent 8fb404b0f8
commit 6a433282dc

View File

@ -85,12 +85,12 @@ def test_parse_args_invalid():
def test_parse_args_dynamic_whitelist(): def test_parse_args_dynamic_whitelist():
args = parse_args(['--dynamic-whitelist'], '') args = parse_args(['--dynamic-whitelist'], '')
assert args.dynamic_whitelist is 20 assert args.dynamic_whitelist == 20
def test_parse_args_dynamic_whitelist_10(): def test_parse_args_dynamic_whitelist_10():
args = parse_args(['--dynamic-whitelist', '10'], '') args = parse_args(['--dynamic-whitelist', '10'], '')
assert args.dynamic_whitelist is 10 assert args.dynamic_whitelist == 10
def test_parse_args_dynamic_whitelist_invalid_values(): def test_parse_args_dynamic_whitelist_invalid_values():