'Verify the endpoint supports listing all CreditCourse objects.'

def test_list(self):

    cc1 = CreditCourse.objects.create(course_key=CourseKey.from_string(u'a/b/c'))
    cc2 = CreditCourse.objects.create(course_key=CourseKey.from_string(u'd/e/f'), enabled=True)
    expected = [self._serialize_credit_course(cc1), self._serialize_credit_course(cc2)]
    response = self.client.get(self.path)
    self.assertEqual(response.status_code, 200)
    self.assertListEqual(json.loads(response.content), expected)
