

def test_enqueue_randomfail(self):
    self.store.write(queue.env, IsA(float)).AndRaise(gevent.GreenletExit)
    self.mox.ReplayAll()
    queue = Queue(self.store, self.relay, relay_pool=5)
    self.assertRaises(gevent.GreenletExit, queue.enqueue, self.env)

dataset/ETHPy150Open slimta/python-slimta/test/test_slimta_queue.py TestQueue.test_enqueue_randomfail/VarMisuse@16/21 `self`->`queue`