Exemple #1
0
    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)
Exemple #2
0
    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)
Exemple #3
0
 def reply(self, req, body, **props):
     return isend_reply(producers[self._connection], self.reply_exchange,
                        req, body, props)
Exemple #4
0
 def reply(self, req, body, **props):
     return isend_reply(producers[self._connection],
                        self.reply_exchange, req, body, props)