Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_bool_or_value_false_is_false():
assert bool_or_value("false") is False
def test_bool_or_value_keep_none():
assert bool_or_value(None) is None
def test_bool_or_value_keep_string_value():
assert bool_or_value("mem") == "mem"
def test_bool_or_value_keep_true_int():
assert bool_or_value(1) == 1
def test_bool_or_value_true_is_true():
assert bool_or_value("true") is True
def test_bool_or_value_keep_false_int():
assert bool_or_value(0) == 0