コード例 #1
0
ファイル: test_channel.py プロジェクト: oldpatricka/pyon
 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
ファイル: test_channel.py プロジェクト: oldpatricka/pyon
 def create_channel():
     ch = RecvChannel()
     ch._declare_exchange = mxp
     ch._declare_queue = mdq
     ch._bind = mb
     return ch
コード例 #3
0
ファイル: test_channel.py プロジェクト: oldpatricka/pyon
 def setUp(self):
     self.ch = RecvChannel()