'Test for getting detail of a ccx course'

@ddt.data(*AUTH_ATTRS)
def test_get_detail(self, auth_attr):

    resp = self.client.get(self.detail_url, {}, HTTP_AUTHORIZATION=getattr(self, auth_attr))
    self.assertEqual(resp.status_code, status.HTTP_200_OK)
    self.assertEqual(resp.data.get('ccx_course_id'), self.ccx_key_str)
    self.assertEqual(resp.data.get('display_name'), self.ccx.display_name)
    self.assertEqual(resp.data.get('max_students_allowed'), self.ccx.max_student_enrollments_allowed)
    self.assertEqual(resp.data.get('coach_email'), self.ccx.coach.email)
    self.assertEqual(resp.data.get('master_course_id'), unicode(self.ccx.course_id))
    self.assertItemsEqual(resp.data.get('course_modules'), self.master_course_chapters)
