diff options
| author | za <za@python.or.id> | 2016-10-27 14:53:39 +0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-11-10 21:30:21 -0500 |
| commit | 321e94fa41b121f65c02119c02098df327bbd569 (patch) | |
| tree | ce5476c191d589aca4b124f841dfbccac8dd299f /tests/auth_tests/test_remote_user.py | |
| parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/auth_tests/test_remote_user.py')
| -rw-r--r-- | tests/auth_tests/test_remote_user.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auth_tests/test_remote_user.py b/tests/auth_tests/test_remote_user.py index 2b5bf32d74..05c76ff6e3 100644 --- a/tests/auth_tests/test_remote_user.py +++ b/tests/auth_tests/test_remote_user.py @@ -77,7 +77,7 @@ class RemoteUserTest(TestCase): **{self.header: self.known_user}) self.assertEqual(response.context['user'].username, 'knownuser') self.assertEqual(User.objects.count(), num_users) - # Test that a different user passed in the headers causes the new user + # A different user passed in the headers causes the new user # to be logged in. response = self.client.get('/remote_user/', **{self.header: self.known_user2}) @@ -86,7 +86,7 @@ class RemoteUserTest(TestCase): def test_last_login(self): """ - Tests that a user's last_login is set the first time they make a + A user's last_login is set the first time they make a request but not updated in subsequent requests with the same session. """ user = User.objects.create(username='knownuser') @@ -110,7 +110,7 @@ class RemoteUserTest(TestCase): def test_header_disappears(self): """ - Tests that a logged in user is logged out automatically when + A logged in user is logged out automatically when the REMOTE_USER header disappears during the same browser session. """ User.objects.create(username='knownuser') @@ -131,7 +131,7 @@ class RemoteUserTest(TestCase): def test_user_switch_forces_new_login(self): """ - Tests that if the username in the header changes between requests + If the username in the header changes between requests that the original user is logged out """ User.objects.create(username='knownuser') @@ -142,7 +142,7 @@ class RemoteUserTest(TestCase): # During the session, the REMOTE_USER changes to a different user. response = self.client.get('/remote_user/', **{self.header: "newnewuser"}) - # Ensure that the current user is not the prior remote_user + # The current user is not the prior remote_user. # In backends that create a new user, username is "newnewuser" # In backends that do not create new users, it is '' (anonymous user) self.assertNotEqual(response.context['user'].username, 'knownuser') |
