Esempio n. 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
Esempio n. 2
0
 def create_channel():
     ch = RecvChannel()
     ch._declare_exchange = mxp
     ch._declare_queue = mdq
     ch._bind = mb
     return ch
Esempio n. 3
0
 def setUp(self):
     self.ch = RecvChannel()