#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def test_add_cancel_and_list( self ) : #NEWLINE# #INDENT# extraCommands = [ { #NEWLINE# #INDENT# 'command' : 'type defaultinterceptor' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : 'ko' , #NEWLINE# #UNINDENT# } ] #NEWLINE# ( yield self . add_mointerceptor ( 'jcli : ' , extraCommands ) ) #NEWLINE# commands = [ { #NEWLINE# #INDENT# 'command' : 'mointerceptor -l' , #NEWLINE# 'expect' : 'Total MO Interceptors: 0' , #NEWLINE# #UNINDENT# } ] #NEWLINE# ( yield self . _test ( 'jcli : ' , commands ) )