'Basic check that the textbook index page responds correctly'

def test_view_index(self):

    resp = self.client.get(self.url)
    self.assertEqual(resp.status_code, 200)
    if (resp.context and resp.context.get('course')):
        self.assertEqual(resp.context['course'], self.course)
