'Check that the response maps to the content of the modulestore'

def test_view_index_xhr_content(self):

    content = [{'tab_title': 'my    textbook', 'url': '/abc.pdf', 'id': '992'}, {'tab_title': 'pineapple', 'id': '0pineapple', 'chapters': [{'title': 'The    Fruit', 'url': '/a/b/fruit.pdf'}, {'title': 'The    Legend', 'url': '/b/c/legend.pdf'}]}]
    self.course.pdf_textbooks = content
    self.save_course()
    resp = self.client.get(self.url, HTTP_ACCEPT='application/json', HTTP_X_REQUESTED_WITH='XMLHttpRequest')
    self.assertEqual(resp.status_code, 200)
    obj = json.loads(resp.content)
    self.assertEqual(content, obj)
