def test_isend_reply(self, ipublish): pool, exchange, req, msg, props = (Mock(), Mock(), Mock(), Mock(), Mock()) isend_reply(pool, exchange, req, msg, props) ipublish.assert_called_with(pool, send_reply, (exchange, req, msg), props)
def reply(self, req, body, **props): return isend_reply(producers[self._connection], self.reply_exchange, req, body, props)