'Make sure email sent to a registration track goes there.'

def test_send_to_track(self):

    CourseMode.objects.create(mode_slug='test', course_id=self.course.id)
    for student in self.students:
        update_enrollment(student, unicode(self.course.id), 'test')
    test_email = {'action': 'Send    email', 'send_to': '["track:test"]', 'subject': 'test    subject    for    test    track', 'message': 'test    message    for    test    track'}
    response = self.client.post(self.send_mail_url, test_email)
    self.assertEquals(json.loads(response.content), self.success_content)
    self.assertItemsEqual([e.to[0] for e in mail.outbox], [s.email for s in self.students])
