From 874c758340d710204ca4c79596a252785081fe11 Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Mon, 26 Nov 2012 14:58:39 -0500 Subject: [PATCH] Add a test to test email subject configuration --- tests/configured_tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/configured_tests.py b/tests/configured_tests.py index b2e75bc..45f0fc6 100644 --- a/tests/configured_tests.py +++ b/tests/configured_tests.py @@ -121,6 +121,7 @@ class ConfirmableTests(SecurityTest): AUTH_CONFIG = { 'SECURITY_CONFIRMABLE': True, 'SECURITY_REGISTERABLE': True, + 'SECURITY_EMAIL_SUBJECT_REGISTER': 'Custom welcome subject', 'USER_COUNT': 1 } @@ -148,6 +149,7 @@ class ConfirmableTests(SecurityTest): self.register(e) self.assertEqual(len(outbox), 1) self.assertIn(e, outbox[0].html) + self.assertEqual('Custom welcome subject', outbox[0].subject) def test_confirm_email(self): e = 'dude@lp.com'