'Make sure email send to myself goes to myself.'

@patch('bulk_email.models.html_to_text', Mock(return_value='Mocking    CourseEmail.text_message', autospec=True))
def test_send_to_self(self):

    test_email = {'action': 'send', 'send_to': '["myself"]', 'subject': 'test    subject    for    myself', 'message': 'test    message    for    myself'}
    response = self.client.post(self.send_mail_url, test_email)
    self.assertEquals(json.loads(response.content), self.success_content)
    self.assertEqual(len(mail.outbox), 1)
    self.assertEqual(len(mail.outbox[0].to), 1)
    self.assertEquals(mail.outbox[0].to[0], self.instructor.email)
    self.assertEquals(mail.outbox[0].subject, 'test    subject    for    myself')
    self.assertEquals(mail.outbox[0].from_email, u'"{course_display_name}"    Course    Staff    <{course_name}-no-reply@example.com>'.format(course_display_name=self.course.display_name, course_name=self.course.id.course))
