def test_create_counter_invalid_value(): with pytest.raises(TypeError): v = create_counter("k", "invalid")
def test_create_counter(): v = create_counter("k", 1) assert v["type"] == "COUNTER"