'Verify the view lists the available courses and modes.'

def test_list(self):

    user = UserFactory.create()
    self.client.login(username=user.username, password=PASSWORD)
    response = self.client.get(self.path, content_type=JSON_CONTENT_TYPE)
    self.assertEqual(response.status_code, 200)
    actual = json.loads(response.content)
    expected = [self._serialize_course(self.course, [self.course_mode])]
    self.assertListEqual(actual, expected)
