#NEWLINE# @ patch ( 'pyon.net.messaging.blocking_cb' ) #NEWLINE# @ patch ( 'pyon.net.transport.AsyncResult' ) #NEWLINE# def test__new_transport( self , armock , bcbmock ) : #NEWLINE# #INDENT# self . _node . client = Mock ( ) #NEWLINE# transport = self . _node . _new_transport ( ) #NEWLINE# bcbmock . assert_called_once_with ( self . _node . client . channel , 'on_open_callback' , channel_number = None )