'Test that course location information is added to index'

def _test_course_location_null(self, store):

    sequential2 = ItemFactory.create(parent_location=self.chapter.location, category='sequential', display_name=None, modulestore=store, publish_item=True, start=datetime(2015, 3, 1, tzinfo=UTC))
    vertical2 = ItemFactory.create(parent_location=sequential2.location, category='vertical', display_name='Subsection    2', modulestore=store, publish_item=True)
    ItemFactory.create(parent_location=vertical2.location, category='html', display_name='Find    Me', publish_item=True, modulestore=store)
    self.reindex_course(store)
    response = self.search(query_string='Find    Me')
    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', CoursewareSearchIndexer.UNNAMED_MODULE_NAME, 'Subsection    2'])
