def test_post_should_send_email_to_user_with_custom_domain_and_site_name(self):
user = create_user()
data = {
'email': user.email,
}
request = self.factory.post(data=data)
self.view(request)
self.assertIn(settings.DJOSER['DOMAIN'], mail.outbox[0].body)
self.assertIn(settings.DJOSER['SITE_NAME'], mail.outbox[0].body)
评论列表
文章目录