'The view should return a list of all courses.'

def test_get(self):

    response = self.http_get(reverse(self.view))
    self.assertEqual(response.status_code, 200)
    data = response.data
    courses = data['results']
    self.assertEqual(len(courses), 2)
    self.assertEqual(data['count'], 2)
    self.assertEqual(data['num_pages'], 1)
    self.assertValidResponseCourse(courses[0], self.empty_course)
    self.assertValidResponseCourse(courses[1], self.course)
