67 | | response = self.client.get('/password_reset/') |
68 | | self.assertEquals(response.status_code, 200) |
69 | | response = self.client.post('/password_reset/', {'email': 'not_a_real_email@email.com'}) |
70 | | self.assertContains(response, "That e-mail address doesn't have an associated user account") |
71 | | self.assertEquals(len(mail.outbox), 0) |
| 72 | if self.url: |
| 73 | response = self.client.get(self.url) |
| 74 | self.assertEquals(response.status_code, 200) |
| 75 | response = self.client.post(self.url, {'email': 'not_a_real_email@email.com'}) |
| 76 | self.assertContains(response, "That e-mail address doesn't have an associated user account") |
| 77 | self.assertEquals(len(mail.outbox), 0) |
75 | | response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'}) |
76 | | self.assertEquals(response.status_code, 302) |
77 | | self.assertEquals(len(mail.outbox), 1) |
| 81 | if self.url: |
| 82 | response = self.client.post(self.url, {'email': 'staffmember@example.com'}) |
| 83 | self.assertEquals(response.status_code, 302) |
| 84 | self.assertEquals(len(mail.outbox), 1) |