Code

Ticket #16412: 16412.diff

File 16412.diff, 613 bytes (added by aaugustin, 3 years ago)
Line 
1Index: django/contrib/auth/tests/forms.py
2===================================================================
3--- django/contrib/auth/tests/forms.py  (revision 16518)
4+++ django/contrib/auth/tests/forms.py  (working copy)
5@@ -261,7 +261,7 @@
6             data = {'email': 'testclient@example.com'}
7             form = PasswordResetForm(data)
8             self.assertTrue(form.is_valid())
9-            form.save()
10+            form.save(domain_override='example.com')
11             self.assertEqual(len(mail.outbox), 1)
12             self.assertEqual(mail.outbox[0].subject, u'Custom password reset on example.com')
13