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
Ensure that invalid values raise the expected validation error.
dataset/ETHPy150Open Hipo/drf-extra-fields/tests/test_fields.py/FieldValues.test_invalid_inputs