diff options
| author | Luoxzhg <luoxzhg@users.noreply.github.com> | 2017-09-09 21:41:45 +0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-09-09 11:21:15 -0400 |
| commit | ffbee67f8e17e1cfffcaa0116c170141a7363dda (patch) | |
| tree | 5ac00f7e5def84f4a636672be4c1201ffc06d713 | |
| parent | 8b5a29800ce0bc7272917de99b46f6f6dcdb7d74 (diff) | |
Fixed some comments referring to a nonexistent TestClient class.
| -rw-r--r-- | django/test/testcases.py | 6 | ||||
| -rw-r--r-- | tests/auth_tests/test_views.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index 983b0bffba..ff17639d51 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -245,9 +245,9 @@ class SimpleTestCase(unittest.TestCase): Assert that a response redirected to a specific URL and that the redirect URL can be loaded. - Won't work for external links since it uses TestClient to do a request - (use fetch_redirect_response=False to check such links without fetching - them). + Won't work for external links since it uses the test client to do a + request (use fetch_redirect_response=False to check such links without + fetching them). """ if msg_prefix: msg_prefix += ": " 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 |
