'Test json response with real data'

def test_reindex_json_responses(self):

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