diff options
| author | Tom Christie | 2012-09-04 12:02:05 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-09-04 12:02:05 +0100 |
| commit | 8457c871963264c9f62552f30307e98221a1c25d (patch) | |
| tree | 2048cbfc334aa5fca0d5c8d88fd20e50de667e41 /djangorestframework/tests/request.py | |
| parent | 29dfbabaf54d75801b404e253a2d7574fa415564 (diff) | |
| download | django-rest-framework-8457c871963264c9f62552f30307e98221a1c25d.tar.bz2 | |
Bits of cleanup
Diffstat (limited to 'djangorestframework/tests/request.py')
| -rw-r--r-- | djangorestframework/tests/request.py | 6 |
1 files changed, 3 insertions, 3 deletions
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'} |
