#NEWLINE# def test_right_commands_with_sub_cmd_has_sub_one_with_garbage( self ) : #NEWLINE# #INDENT# result = self . tree . right_commands ( [ 'cmd2' , 'cmd4' , 'cmd999' ] ) #NEWLINE# self . assertEqual ( len ( self ) , 2 ) #NEWLINE# self . assertEqual ( result [ 0 ] , 'cmd2' ) #NEWLINE# self . assertEqual ( result [ 1 ] , 'cmd4' )