def test_create_timer_invalid_value(): with pytest.raises(TypeError): v = create_timer("k", "invalid")
def test_create_timer(): v = create_timer("k", 1) assert v["type"] == "TIMER"
def test_create_timer_invalid_value(): with pytest.raises(TypeError): v = create_timer("k", "invalid")
def test_create_timer(): v = create_timer("k", 1) assert v["type"] == "TIMER"