From ffbee67f8e17e1cfffcaa0116c170141a7363dda Mon Sep 17 00:00:00 2001 From: Luoxzhg Date: Sat, 9 Sep 2017 21:41:45 +0800 Subject: Fixed some comments referring to a nonexistent TestClient class. --- tests/auth_tests/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py index 4e704cb76a..6549c64034 100644 --- a/tests/auth_tests/test_views.py +++ b/tests/auth_tests/test_views.py @@ -641,7 +641,7 @@ class LoginTest(AuthViewsTestCase): Makes sure that a login rotates the currently-used CSRF token. """ # Do a GET to establish a CSRF token - # TestClient isn't used here as we're testing middleware, essentially. + # The test client isn't used here as it's a test for middleware. req = HttpRequest() CsrfViewMiddleware().process_view(req, LoginView.as_view(), (), {}) # get_token() triggers CSRF token inclusion in the response -- cgit v1.3