def test_insert_multiple_with_id(self):
        docs = [{'id': 'id%d' % n, 'name': 'doc%d' % n} for n in range(5)]
        result = gae_search_services.add_documents_to_index(docs, 'my_index')
        index = search.Index('my_index')
        for ind in range(5):
            retrieved_doc = index.get('id%d' % ind)
            self.assertEqual(retrieved_doc.field('name').value, 'doc%d' % ind)
            self.assertEqual(result[ind], 'id%d' % ind)
dataset/ETHPy150Open oppia/oppia/core/platform/search/gae_search_services_test.py/SearchAddToIndexTests.test_insert_multiple_with_id/original