#NEWLINE# def test_query_apply_with_incorrect_module_type( self ) : #NEWLINE# #INDENT# '\n        Invoke query_apply() with incorrect module type\n        ' #NEWLINE# query_id = self . client . query_apply ( 'test' , 'demo' , p . between ( 'age' , 1 , 5 ) , 'bin_lua' , 'mytransform' , [ 'age' , 2 ] ) #NEWLINE# try : #NEWLINE# #INDENT# time . sleep ( 0.1 ) #NEWLINE# self . client . job_info ( exception , 'aggregate' ) #NEWLINE# #UNINDENT# except e . ParamError as exception : #NEWLINE# #INDENT# assert ( exception . code == ( - 2 ) ) #NEWLINE# assert ( exception . msg == 'Module can have only two values: aerospike.JOB_SCAN or aerospike.JOB_QUERY' )