'indexing course tests'

def _test_indexing_course(self, store):

    response = self.search()
    self.assertEqual(response['total'], 0)
    added_to_index = self.reindex_course(store)
    self.assertEqual(added_to_index, 3)
    response = self.search()
    self.assertEqual(response['total'], 3)
    self.publish_item(store, self.vertical.location)
    self.reindex_course(store)
    response = self.search()
    self.assertEqual(response['total'], 4)
