#NEWLINE# def test_query_apply_with_incorrect_policy( self ) : #NEWLINE# #INDENT# '\n        Invoke query_apply() with incorrect policy\n        ' #NEWLINE# policy = { #NEWLINE# #INDENT# 'timeout' : 0.5 , #NEWLINE# #UNINDENT# } #NEWLINE# try : #NEWLINE# #INDENT# self . client . query_apply ( 'test' , 'demo' , [ 'age' , 1 , 5 ] , 'bin_lua' , 'mytransform' , [ 'age' , 2 ] , policy ) #NEWLINE# #UNINDENT# except e . ParamError as exception : #NEWLINE# #INDENT# assert ( exception . code == ( - 2 ) ) #NEWLINE# assert ( exception . msg == 'timeout is invalid' )