MCPcopy
hub / github.com/pika/pika / on_message

Method on_message

tests/acceptance/async_adapter_tests.py:852–856  ·  view source on GitHub ↗
(self, channel, method, header, body)

Source from the content-addressed store, hash-verified

850 self.stop()
851
852 def on_message(self, channel, method, header, body):
853 self.assertIsInstance(method, spec.Basic.Deliver)
854 self.assertEqual(body, as_bytes(self.msg_body))
855 self.channel.basic_ack(method.delivery_tag)
856 self.channel.basic_cancel(self.ctag, callback=self.on_cancelled)
857
858
859class TestZ_PublishAndConsumeBig(BoundQueueTestCase, AsyncAdapters): # pylint: disable=C0103

Callers

nothing calls this directly

Calls 3

as_bytesFunction · 0.90
basic_ackMethod · 0.45
basic_cancelMethod · 0.45

Tested by

no test coverage detected