

def test_max_value_validation_serializer_fails(self):
    serializer = ValidationMaxValueValidatorModelSerializer(data={
        'number_value': 101,
    })
    self.assertFalse(self.is_valid())
    self.assertDictEqual({
        'number_value': ['Ensure this value is less than or equal to 100.'],
    }, serializer.errors)

dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_validation.py TestMaxValueValidatorValidation.test_max_value_validation_serializer_fails/VarMisuse@30/46 `serializer`->`self`