#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def test_add_incompatible_filter( self ) : #NEWLINE# #INDENT# commands = [ { #NEWLINE# #INDENT# 'command' : 'mointerceptor -a' , #NEWLINE# #UNINDENT# } , { #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 uf1' , #NEWLINE# 'expect' : 'UserFilter#uf1 is not a valid filter for MOInterceptor' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : 'ok' , #NEWLINE# 'expect' : 'You must set these options before saving: type, order, filters, script' , #NEWLINE# #UNINDENT# } ] #NEWLINE# ( yield self . _test ( '> ' , commands ) )