'Test that callbacks are called using object destruction.'

def test04KillObject(self):

    results = []
    class TestStore(utils.FastStore, ):
        def KillObject(self, obj):
            results.append(obj)
    s = TestStore(max_size=5)
    for i in range(0, 10):
        s.Put(i, i)
    self.assertEqual(results, range(0, 5))
