

def test_custom_validation_method_passing(self):
    serializer = ShouldValidateModelSerializer(data={
        'renamed': 'foo',
    })
    self.assertTrue(serializer.is_valid())

dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_validation.py TestCustomValidationMethods.test_custom_validation_method_passing/original