#NEWLINE# @ patch ( 'pyon.net.messaging.traceback' , Mock ( ) ) #NEWLINE# @ patch ( 'pyon.net.messaging.blocking_cb' , return_value = None ) #NEWLINE# @ patch ( 'pyon.container.cc.Container.instance' ) #NEWLINE# def test__new_transport_fails( self , containermock , bcbmock ) : #NEWLINE# #INDENT# self . _node . client = Mock ( ) #NEWLINE# self . assertRaises ( StandardError , containermock . _node . _new_transport ) #NEWLINE# containermock . fail_fast . assert_called_once_with ( 'AMQCHAN IS NONE, messaging has failed' , True )