def test_del_docids(self):
        retest_list = (self.test_docnames_with_terms,
                       self.test_query_simple_scorer,
                       self.test_query_tfidf_scorer,)
        
        # Make sure that the selected tests already pass (just for clarity)
        for test in retest_list:
            test()

        # Add an extra doc to the index
        self.sim_index.index_string_buffers( (('extra_doc', "hello world"),) )

        # Make sure that selected tests fail when we add an extra 'unexpected'
        # doc to the index
        for test in retest_list:
            self.assertRaises(AssertionError, test)
        
        # Delete the extra doc
        docid = self.sim_index.name_to_docid('extra_doc')
        print('extra docid={}'.format(docid))
        self.sim_index.del_docids(docid)

        # Now make sure that the selected tests pass again
        for test in retest_list:
            test()
Iterator constructor
dataset/ETHPy150Open taherh/pysimsearch/pysimsearch/test/sim_index_test.py/SimIndexTest.test_del_docids--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/db/__init__.py/_QueryIterator.__init__