def METHOD_NAME(self):
    email_sender = "sender@company.com"
    email_recipient = "recipient@company.com"
    email_subject = "subject"
    email_content = "content"
    email_content_type = "content-type"
    with patch.object(self.connector, "_execute_send") as execute_send_mock:
        execute_send_mock.return_value.status_code = 500
        with self.assertRaises(EmailSendError):
            self.connector.send(
                email_sender=email_sender,
                email_recipient=email_recipient,
                email_subject=email_subject,
                email_content=email_content,
                content_type=email_content_type,
                attachment=self.attachment
            )
        self.assertEqual(execute_send_mock.call_count, 1)