Update test names and add docstring.

This commit is contained in:
Joe Hand
2013-10-02 08:24:27 -06:00
parent 20c16107e8
commit 55ffe2563e
+3 -2
View File
@@ -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',