summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_views.py
diff options
context:
space:
mode:
authorMattia Procopio <promat85@gmail.com>2019-05-23 14:22:41 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-05-27 11:50:30 +0200
commitaff61790a326f214f5ea608bac8298c3a8716b1b (patch)
tree9917fefc34ef5b8b81cf2019633566e155b41f6b /tests/auth_tests/test_views.py
parent0670b1b403087ec2d311321597b387ad541ea2e0 (diff)
Refs #24944 -- Added test for overriding domain in email context in PasswordResetView.
Diffstat (limited to 'tests/auth_tests/test_views.py')
-rw-r--r--tests/auth_tests/test_views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py
index 0b07b7ebbc..04eaa8574f 100644
--- a/tests/auth_tests/test_views.py
+++ b/tests/auth_tests/test_views.py
@@ -134,6 +134,7 @@ class PasswordResetTest(AuthViewsTestCase):
self.assertEqual(response.status_code, 302)
self.assertEqual(len(mail.outbox), 1)
self.assertIn('Email email context: "Hello!"', mail.outbox[0].body)
+ self.assertIn('http://custom.example.com/reset/', mail.outbox[0].body)
def test_html_mail_template(self):
"""