From 58740c0d7f441e7a12e5847fcd7409a78d9edd7b Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Sat, 28 Nov 2020 10:28:11 +0100 Subject: [PATCH] Refs #22909 -- Removed camelCasing in auth_tests.test_templates tests. --- tests/auth_tests/test_templates.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/auth_tests/test_templates.py b/tests/auth_tests/test_templates.py index 866e4bd355a..1b25489493e 100644 --- a/tests/auth_tests/test_templates.py +++ b/tests/auth_tests/test_templates.py @@ -24,17 +24,17 @@ class AuthTemplateTests(TestCase): request.user = user cls.user, cls.request = user, request - def test_PasswordResetView(self): + def test_password_reset_view(self): response = PasswordResetView.as_view(success_url='dummy/')(self.request) self.assertContains(response, 'Password reset | Django site admin') self.assertContains(response, '

Password reset

') - def test_PasswordResetDoneView(self): + def test_password_reset_done_view(self): response = PasswordResetDoneView.as_view()(self.request) self.assertContains(response, 'Password reset sent | Django site admin') self.assertContains(response, '

Password reset sent

') - def test_PasswordResetConfirmView_invalid_token(self): + def test_password_reset_confirm_view_invalid_token(self): # PasswordResetConfirmView invalid token client = PasswordResetConfirmClient() url = reverse('password_reset_confirm', kwargs={'uidb64': 'Bad', 'token': 'Bad-Token'}) @@ -42,7 +42,7 @@ class AuthTemplateTests(TestCase): self.assertContains(response, 'Password reset unsuccessful | Django site admin') self.assertContains(response, '

Password reset unsuccessful

') - def test_PasswordResetConfirmView_valid_token(self): + def test_password_reset_confirm_view_valid_token(self): # PasswordResetConfirmView valid token client = PasswordResetConfirmClient() default_token_generator = PasswordResetTokenGenerator() @@ -59,17 +59,17 @@ class AuthTemplateTests(TestCase): '', ) - def test_PasswordResetCompleteView(self): + def test_password_reset_complete_view(self): response = PasswordResetCompleteView.as_view()(self.request) self.assertContains(response, 'Password reset complete | Django site admin') self.assertContains(response, '

Password reset complete

') - def test_PasswordResetChangeView(self): + def test_password_reset_change_view(self): response = PasswordChangeView.as_view(success_url='dummy/')(self.request) self.assertContains(response, 'Password change | Django site admin') self.assertContains(response, '

Password change

') - def test_PasswordChangeDoneView(self): + def test_password_change_done_view(self): response = PasswordChangeDoneView.as_view()(self.request) self.assertContains(response, 'Password change successful | Django site admin') self.assertContains(response, '

Password change successful

')