def test_first_while_deleting(self):
        # Test for bug 1725856
        self.assert_(len(self.d) >= 2, "test requires >=2 items")
        for _ in self.d:
            key = self.f.first()[0]
            del self.f[key]
        self.assertEqual([], self.f.items(), "expected empty db after test")
dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_bsddb.py/TestBSDDB.test_first_while_deleting/original