

def test_enqueue_wait_transientfail_noretry(self):
    self.store.write(self.env, IsA(float)).AndReturn('1234')
    self.relay._attempt(self.env, 0).AndRaise(TransientRelayError('transient', Reply('450', 'transient')))
    queue.store.increment_attempts('1234')
    self.store.remove('1234')
    self.mox.ReplayAll()

    def no_bounce(envelope, reply):
        return None
    queue = Queue(self.store, self.relay, bounce_factory=no_bounce, relay_pool=5)
    queue.enqueue(self.env)
    queue.relay_pool.join()

dataset/ETHPy150Open slimta/python-slimta/test/test_slimta_queue.py TestQueue.test_enqueue_wait_transientfail_noretry/VarMisuse@59/85 `self`->`queue`