'Ensure that invalid values raise the expected validation error.'

def test_invalid_inputs(self):

    for (input_value, expected_failure) in get_items(self.invalid_inputs):
        with pytest.raises(serializers.ValidationError) as exc_info:
            self.field.run_validation(input_value)
        assert (exc_info.value.detail == expected_failure)
