From 55ffe2563e35cf8413d92ac65d2a19cecc8f1972 Mon Sep 17 00:00:00 2001 From: Joe Hand Date: Wed, 2 Oct 2013 08:24:27 -0600 Subject: [PATCH] Update test names and add docstring. --- tests/configured_tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/configured_tests.py b/tests/configured_tests.py index 7ab132b..a1213d8 100644 --- a/tests/configured_tests.py +++ b/tests/configured_tests.py @@ -493,15 +493,16 @@ class ChangePasswordTest(SecurityTest): self.assertIn("/reset", outbox[0].html) -class SendEmailTest(SecurityTest): +class EmailConfigTest(SecurityTest): AUTH_CONFIG = { 'SECURITY_SEND_REGISTER_EMAIL': False, 'SECURITY_SEND_PASSWORD_CHANGE_EMAIL': False, } + def test_change_password_success_email_option(self): + """Test the change password email can be turned off w/ configuration.""" - def test_change_password_success(self): data = { 'password': 'password', 'new_password': 'newpassword',