#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def test_add_nondefaultinterceptor_with_zero_order( self ) : #NEWLINE# #INDENT# "The only interceptor that can have a Zero as it's order is the DefaultInterceptor\n        " #NEWLINE# commands = [ { #NEWLINE# #INDENT# 'command' : 'mointerceptor -a' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : 'order 0' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : 'type StaticMOInterceptor' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : ( 'script python2(%s)' % commands . valid_script ) , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : 'filters f1' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'command' : 'ok' , #NEWLINE# 'expect' : 'Failed adding MOInterceptor, check log for details' , #NEWLINE# #UNINDENT# } ] #NEWLINE# ( yield self . _test ( '> ' , commands ) )