

def test_nested_validation_error_detail(self):
    '\n        Ensure nested validation error detail is rendered correctly.\n        '
    e = serializers.ValidationError({
        'nested': {
            'field': ['error'],
        },
    })
    self.assertEqual(serializers.get_validation_error_detail(e), {
        'nested': {
            'field': ['error'],
        },
    })

dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_validation.py TestNestedValidationError.test_nested_validation_error_detail/original