diff --git a/rest_framework/test.py b/rest_framework/test.py index 421b1e7f5..f2c0f53a1 100644 --- a/rest_framework/test.py +++ b/rest_framework/test.py @@ -451,4 +451,4 @@ class ModelTestCase(APITestCase): response = self.client.post(self.url, case, format='json') response.data.pop('id') self.assertEqual(case, response.data) - self.assertEqual(response.status_code, status.HTTP_201_CREATED) \ No newline at end of file + self.assertEqual(response.status_code, status.HTTP_201_CREATED) diff --git a/tests/test_testing.py b/tests/test_testing.py index 4579bf418..1c6a0b166 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -11,7 +11,8 @@ from rest_framework import fields, serializers, viewsets from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.test import ( - APIClient, APIRequestFactory, URLPatternsTestCase, force_authenticate, ModelTestCase + APIClient, APIRequestFactory, ModelTestCase, URLPatternsTestCase, + force_authenticate ) @@ -343,4 +344,4 @@ class TestModelTestCase(ModelTestCase): url = "/persons/" first_name = ["John", "Jane"] last_name = ["Doe", "Roosevelt"] - age = [11, 23, 58, 13, 21] \ No newline at end of file + age = [11, 23, 58, 13, 21]