def test_for_valid_acknowledged_state(): cases = [ ("all", True), ("true", True), ("false", True), ("2010-02-29", False), ("invalid", False) ] for example, expected in cases: assert_equal(is_valid_acknowledged_state(example), expected)
def test_for_valid_acknowledged_state(): cases = [ ("all", True), ("true", True), ("false", True), ("2010-02-29", False), ("invalid", False) ] for example, expected in cases: yield assert_equal, is_valid_acknowledged_state(example), expected