#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def test_add_defaultinterceptor_without_indicating_order( self ) : #NEWLINE# #INDENT# 'The interceptor order will be set to 0 when interceptor type is set to\n        DefaultInterceptor without the need to indicate the order\n        ' #NEWLINE# extraCommands = [ { #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# expectedList = [ '#Order Type                 Script                                          Filter\\(s\\)' , '#0     DefaultInterceptor   <MOIS \\(pyCode=print "hello  world" ..\\)>' , 'Total MO Interceptors: 1' ] #NEWLINE# commands = [ { #NEWLINE# #INDENT# 'command' : 'mointerceptor -l' , #NEWLINE# 'expect' : expectedList , #NEWLINE# #UNINDENT# } ] #NEWLINE# ( yield self . _test ( 'jcli : ' , extraCommands ) )