def METHOD_NAME(field_type, valid_values, invalid_values):
    assert isinstance(field_type.type_name, str)
    assert isinstance(field_type.name, str)
    for valid_value in valid_values:
        field_type.validate(valid_value)
    for invalid_value in invalid_values:
        with pytest.raises(TypeError):
            field_type.validate(invalid_value)