#NEWLINE# def test_add_local_command_for_ctl( self ) : #NEWLINE# #INDENT# self . ctl . add_command ( 'test' , ( lambda p : 'test' ) ) #NEWLINE# response = self . ctl . call ( 'test' ) #NEWLINE# print ( self ) #NEWLINE# self . assertEqual ( response . kind , 'local' ) #NEWLINE# self . assertEqual ( response . res , 'test' ) #NEWLINE# self . assertIsNone ( response . err )