def test_bool_or_int_to_str(): cases = [ (True, '1'), (False, ''), (1, '1'), (0, '0'), ] for inp, exp in cases: obs = bool_or_int_to_str(inp) assert exp == obs
def test_bool_or_int_to_str(): cases = [ (True, '1'), (False, ''), (1, '1'), (0, '0'), ] for inp, exp in cases: obs = bool_or_int_to_str(inp) yield assert_equal, exp, obs
def test_bool_or_int_to_str(inp, exp): obs = bool_or_int_to_str(inp) assert exp == obs