def METHOD_NAME(self, send_email):
    subject = "Pending configuration of custom domain"
    email_pending_custom_domains.delay(number_of_emails=3)
    self.assertEqual(send_email.call_count, 2)
    kwargs = send_email.call_args_list[0][1]
    self.assertEqual(kwargs["recipient"], self.user.email)
    self.assertTrue(kwargs["subject"].startswith(subject))
    self.assertIn(self.domain_recently_expired.domain, kwargs["subject"])
    kwargs = send_email.call_args_list[1][1]
    self.assertEqual(kwargs["recipient"], self.another_user.email)
    self.assertTrue(kwargs["subject"].startswith(subject))
    self.assertIn(self.domain_recently_expired.domain, kwargs["subject"])