(cls)
| 1166 | class PasswordResetFormTest(TestDataMixin, TestCase): |
| 1167 | @classmethod |
| 1168 | def setUpClass(cls): |
| 1169 | super().setUpClass() |
| 1170 | # This cleanup is necessary because contrib.sites cache |
| 1171 | # makes tests interfere with each other, see #11505 |
| 1172 | Site.objects.clear_cache() |
| 1173 | |
| 1174 | def assertEmailMessageSent(self, **kwargs): |
| 1175 | self.assertEqual(len(mail.outbox), 1) |
nothing calls this directly
no test coverage detected