#NEWLINE# def test_send( self ) : #NEWLINE# #INDENT# _sendmock = Mock ( ) #NEWLINE# self . ch . _send = np #NEWLINE# np = NameTrio ( 'xp' , 'key' ) #NEWLINE# self . ch . connect ( np ) #NEWLINE# self . ch . send ( 'data' , { #NEWLINE# #INDENT# 'header' : sentinel . headervalue , #NEWLINE# #UNINDENT# } ) #NEWLINE# _sendmock . assert_called_once_with ( np , 'data' , headers = { #NEWLINE# #INDENT# 'header' : sentinel . headervalue , #NEWLINE# #UNINDENT# } )