Пример #1
0
 def _create_channel(self):
     """
     Test helper method, creates mocked up broker interaction.
     """
     ch = RecvChannel()
     ch._declare_exchange = Mock()
     ch._declare_queue = Mock()
     ch._declare_queue.return_value = sentinel.anon_queue
     ch._bind = Mock()
     return ch
Пример #2
0
 def _create_channel(self):
     """
     Test helper method, creates mocked up broker interaction.
     """
     ch = RecvChannel()
     ch._declare_exchange = Mock()
     ch._declare_queue = Mock()
     ch._declare_queue.return_value = sentinel.anon_queue
     ch._bind = Mock()
     return ch
Пример #3
0
 def create_channel():
     ch = RecvChannel()
     ch._declare_exchange = mxp
     ch._declare_queue = mdq
     ch._bind = mb
     return ch
Пример #4
0
 def create_channel():
     ch = RecvChannel()
     ch._declare_exchange = mxp
     ch._declare_queue = mdq
     ch._bind = mb
     return ch