#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def test_remove( self ) : #NEWLINE# #INDENT# order = '0' #NEWLINE# extraCommands = [ { #NEWLINE# #INDENT# 'command' : ( 'order %s' % order ) , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : 'type DefaultInterceptor' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : ( 'script python2(%s)' % self . valid_script ) , #NEWLINE# #UNINDENT# } ] #NEWLINE# ( yield self . add_mointerceptor ( 'jcli : ' , extraCommands ) ) #NEWLINE# commands = [ { #NEWLINE# #INDENT# 'command' : ( 'mointerceptor -r %s' % order ) , #NEWLINE# 'expect' : ( 'Successfully removed MO Interceptor with order\\:%s' % order ) , #NEWLINE# #UNINDENT# } ] #NEWLINE# ( yield self . _test ( 'jcli : ' , commands ) )