#NEWLINE# def test_query_apply_with_extra_argument( self ) : #NEWLINE# #INDENT# '\n        Invoke query_apply() with extra argument\n        ' #NEWLINE# policy = { #NEWLINE# #INDENT# 'timeout' : 1000 , #NEWLINE# #UNINDENT# } #NEWLINE# with pytest . raises ( TypeError ) as typeError : #NEWLINE# #INDENT# self . client . query_apply ( 'test' , 'demo' , p . between ( 'age' , 1 , 5 ) , 'bin_lua' , 'mytransform_incorrect' , [ 'age' , 2 ] , policy , '' ) #NEWLINE# #UNINDENT# assert ( 'query_apply() takes at most 7 arguments (8 given)' in str ( self . value ) )