From f1f5f92d899ae37d71234bf8a8a3ad52e20a253f Mon Sep 17 00:00:00 2001 From: Oscar Vilaplana Date: Sun, 19 May 2013 14:55:46 +0200 Subject: Added tests, cleaned up imports --- rest_framework/tests/views.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rest_framework/tests/views.py') diff --git a/rest_framework/tests/views.py b/rest_framework/tests/views.py index 994cf6dc..b70ef4ae 100644 --- a/rest_framework/tests/views.py +++ b/rest_framework/tests/views.py @@ -6,6 +6,8 @@ from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.settings import api_settings from rest_framework.views import APIView +from rest_framework import exceptions +from rest_framework import serializers import copy factory = RequestFactory() @@ -98,3 +100,4 @@ class FunctionBasedViewIntegrationTests(TestCase): } self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertEqual(sanitise_json_error(response.data), expected) + -- cgit v1.2.3