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_to_str_true_int_gives_int():
assert bool_to_str(1) == 1
def test_bool_to_str_false_int_gives_int():
assert bool_to_str(0) == 0
def test_bool_to_str_none_gives_none():
assert bool_to_str(None) is None
def test_bool_to_str_true_gives_true():
assert bool_to_str(True) == "true"
def test_bool_to_str_false_gives_false():
assert bool_to_str(False) == "false"