From 8457c871963264c9f62552f30307e98221a1c25d Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 4 Sep 2012 12:02:05 +0100 Subject: Bits of cleanup --- djangorestframework/tests/request.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'djangorestframework/tests/request.py') diff --git a/djangorestframework/tests/request.py b/djangorestframework/tests/request.py index 7ad99c07..2bb90c0a 100644 --- a/djangorestframework/tests/request.py +++ b/djangorestframework/tests/request.py @@ -6,7 +6,7 @@ from django.contrib.auth.models import User from django.test import TestCase, Client from djangorestframework import status -from djangorestframework.authentication import UserLoggedInAuthentication +from djangorestframework.authentication import SessionAuthentication from djangorestframework.utils import RequestFactory from djangorestframework.parsers import ( FormParser, @@ -208,7 +208,7 @@ class TestContentParsing(TestCase): class MockView(APIView): - authentication = (UserLoggedInAuthentication,) + authentication = (SessionAuthentication,) def post(self, request): if request.POST.get('example') is not None: @@ -233,7 +233,7 @@ class TestContentParsingWithAuthentication(TestCase): def test_user_logged_in_authentication_has_POST_when_not_logged_in(self): """ - Ensures request.POST exists after UserLoggedInAuthentication when user + Ensures request.POST exists after SessionAuthentication when user doesn't log in. """ content = {'example': 'example'} -- cgit v1.2.3