def test_delete_multiple_documents(self):
        index = search.Index('my_index')
        for i in xrange(10):
            field = search.TextField(name='k', value='v%d' % i)
            doc = search.Document(doc_id='doc%d' % i, fields=[field])
            index.put([doc])
        gae_search_services.delete_documents_from_index(
            ['doc' + str(i) for i in xrange(10)], 'my_index')
        for i in xrange(10):
            self.assertIsNone(index.get('doc%d' % i))
dataset/ETHPy150Open oppia/oppia/core/platform/search/gae_search_services_test.py/SearchRemoveFromIndexTests.test_delete_multiple_documents/original