diff options
| author | Nikolaus Schlemm | 2013-05-19 14:58:11 +0200 |
|---|---|---|
| committer | Nikolaus Schlemm | 2013-05-19 14:58:11 +0200 |
| commit | 88c94f372049058a7a982745e8b772bd057abe99 (patch) | |
| tree | e2bb485ff106968f20c97bbef75e7cfe2f95ec36 /rest_framework/tests/views.py | |
| parent | efca5f6feccf72421577ccea8889c7de729c47b8 (diff) | |
| parent | f1f5f92d899ae37d71234bf8a8a3ad52e20a253f (diff) | |
| download | django-rest-framework-88c94f372049058a7a982745e8b772bd057abe99.tar.bz2 | |
Merge remote-tracking branch 'grimborg/issue-192-expose-fields-for-options' into issue-192-expose-fields-for-options
Diffstat (limited to 'rest_framework/tests/views.py')
| -rw-r--r-- | rest_framework/tests/views.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) + |
