예제 #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
파일: test_channel.py 프로젝트: ooici/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
예제 #3
0
 def create_channel():
     ch = RecvChannel()
     ch._declare_exchange = mxp
     ch._declare_queue = mdq
     ch._bind = mb
     return ch
예제 #4
0
파일: test_channel.py 프로젝트: ooici/pyon
 def create_channel():
     ch = RecvChannel()
     ch._declare_exchange = mxp
     ch._declare_queue = mdq
     ch._bind = mb
     return ch