

def test_invalid_inputs(self):
    '\n        Ensure that invalid values raise the expected validation error.\n        '
    for (input_value, expected_failure) in get_items(self.invalid_inputs):
        with pytest.raises(serializers.ValidationError) as exc_info:
            exc_info.field.run_validation(input_value)
        assert (exc_info.value.detail == expected_failure)

dataset/ETHPy150Open Hipo/drf-extra-fields/tests/test_fields.py FieldValues.test_invalid_inputs/VarMisuse@42/79 `self`->`exc_info`