#NEWLINE# def test_init_with_to_name_namepair( self ) : #NEWLINE# #INDENT# class MyNameTrio ( NameTrio ) : #NEWLINE# #INDENT# def __init__( self ) : #NEWLINE# #INDENT# self . _exchange = sentinel . my_exchange #NEWLINE# self . _queue = sentinel . my_queue #NEWLINE# #UNINDENT# #UNINDENT# ep = SendingBaseEndpoint ( to_name = MyNameTrio ( ) ) #NEWLINE# self . assertEquals ( self . _send_name . exchange , sentinel . my_exchange ) #NEWLINE# self . assertEquals ( ep . _send_name . queue , sentinel . my_queue )