'Test do_course_reindex response with real data'

def test_indexing_responses(self):

    response = perform_search('unique', user=self.user, size=10, from_=0, course_id=unicode(self.course.id))
    self.assertEqual(response['total'], 1)
    CoursewareSearchIndexer.do_course_reindex(modulestore(), self.course.id)
    response = perform_search('unique', user=self.user, size=10, from_=0, course_id=unicode(self.course.id))
    self.assertEqual(response['total'], 1)
