#NEWLINE# def test_create_endpoint_calls_connect( self ) : #NEWLINE# #INDENT# np = NameTrio ( sentinel . xp , sentinel . queue ) #NEWLINE# ep = SendingBaseEndpoint ( node = Mock ( spec = NodeB ) , to_name = np ) #NEWLINE# e = ep . create_endpoint ( ) #NEWLINE# e . channel . connect . assert_called_once_with ( ep )