#NEWLINE# def test__create_channel_sets_transport_kwarg( self ) : #NEWLINE# #INDENT# class FakeSendName ( NameTrio , BaseTransport ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# fn = FakeSendName ( ) #NEWLINE# ep = ListeningBaseEndpoint ( node = Mock ( spec = NodeB ) , from_name = fn ) #NEWLINE# ch = ep . _create_channel ( ) #NEWLINE# self . assertIn ( 'transport' , ep . node . channel . call_args [ 1 ] ) #NEWLINE# self . assertIn ( fn , ep . node . channel . call_args [ 1 ] . itervalues ( ) )