diff --git a/tests/test_viewsets.py b/tests/test_viewsets.py index eac36f095..3496263e4 100644 --- a/tests/test_viewsets.py +++ b/tests/test_viewsets.py @@ -94,7 +94,7 @@ urlpatterns = [ class InitializeViewSetsTestCase(TestCase): def test_initialize_view_set_with_actions(self): - request = factory.get('/', '', content_type='application/json') + request = factory.get('/', content_type='application/json') my_view = BasicViewSet.as_view(actions={ 'get': 'list', }) @@ -103,8 +103,8 @@ class InitializeViewSetsTestCase(TestCase): assert response.status_code == status.HTTP_200_OK assert response.data == {'ACTION': 'LIST'} - def testhead_request_against_viewset(self): - request = factory.head('/', '', content_type='application/json') + def test_head_request_against_viewset(self): + request = factory.head('/', content_type='application/json') my_view = BasicViewSet.as_view(actions={ 'get': 'list', })