'Test that course location information is added to index'

def _test_course_location_info(self, store):

    self.publish_item(store, self.vertical.location)
    self.reindex_course(store)
    response = self.search(query_string='Html    Content')
    self.assertEqual(response['total'], 1)
    result = response['results'][0]['data']
    self.assertEqual(result['course_name'], 'Search    Index    Test    Course')
    self.assertEqual(result['location'], ['Week    1', 'Lesson    1', 'Subsection    1'])
