#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def test_list_with_filter( self ) : #NEWLINE# #INDENT# extraCommands = [ { #NEWLINE# #INDENT# 'command' : 'order 20' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : 'type StaticMOInterceptor' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : ( 'script python2(%s)' % self . valid_script ) , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : 'filters cf1' , #NEWLINE# #UNINDENT# } ] #NEWLINE# ( yield self . add_mointerceptor ( 'jcli : ' , self ) ) #NEWLINE# expectedList = [ '#Order Type                 Script                                          Filter\\(s\\)' , '#20    StaticMOInterceptor  <MOIS \\(pyCode=print "hello  world" ..\\)>         <C \\(cid=Any\\)>' , 'Total MO Interceptors: 1' ] #NEWLINE# commands = [ { #NEWLINE# #INDENT# 'command' : 'mointerceptor -l' , #NEWLINE# 'expect' : expectedList , #NEWLINE# #UNINDENT# } ] #NEWLINE# ( yield self . _test ( 'jcli : ' , commands ) )