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
def create_channel(): ch = RecvChannel() ch._declare_exchange = mxp ch._declare_queue = mdq ch._bind = mb return ch