'Make sure email (with Unicode characters) send to all goes there.'

def test_unicode_students_send_to_all(self):

    unicode_user = UserFactory(first_name=u'\u24c7\u24de\u24d1\u24de\u24e3', last_name=u'\u0547\ufec9\u0e23\u0547')
    CourseEnrollmentFactory.create(user=unicode_user, course_id=self.course.id)
    self.students.append(unicode_user)
    test_email = {'action': 'Send    email', 'send_to': '["myself",    "staff",    "learners"]', 'subject': 'test    subject    for    all', 'message': 'test    message    for    all'}
    response = self.client.post(self.send_mail_url, test_email)
    self.assertEquals(json.loads(response.content), self.success_content)
    self.assertEquals(len(mail.outbox), ((1 + len(self.staff)) + len(self.students)))
    self.assertItemsEqual([e.to[0] for e in mail.outbox], (([self.instructor.email] + [s.email for s in self.staff]) + [s.email for s in self.students]))
