def test_unwrapped_cursor(self):
        self.assertEqual(self.col.count(), 0)

        doc_id = self.col.save({}, safe=True)
        self.assertEqual(self.col.count(), 1)

        try:
            self.col.find(_id=doc_id)[0]

        except __HOLE__:
            self.fail("Cursor.__getitem__ raised TypeError unexpectedly!")
dataset/ETHPy150Open namlook/mongokit/tests/test_api.py/ApiTestCase.test_unwrapped_cursor