#NEWLINE# def test_geo__get_intersecting( points ) : #NEWLINE# #INDENT# simple_points = _url ( 'simple-app/simple-points' ) #NEWLINE# bbox = requests . get ( bbox , params = { #NEWLINE# #INDENT# 'geo' : json . dumps ( { #NEWLINE# #INDENT# 'op' : 'get_intersecting' , #NEWLINE# 'test' : { #NEWLINE# #INDENT# 'type' : 'Polygon' , #NEWLINE# 'coordinates' : [ [ [ ( - 10.15 ) , 33.0 ] , [ 1.0 , 33.0 ] , [ 1.0 , 33.5 ] , [ ( - 10.15 ) , 33.5 ] , [ ( - 10.15 ) , 33.0 ] ] ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert bbox . ok #NEWLINE# results = bbox . json ( ) #NEWLINE# assert ( len ( results ) == 2 ) #NEWLINE# bbox_post = requests . post ( simple_points , data = json . dumps ( { #NEWLINE# #INDENT# '__method' : 'GET' , #NEWLINE# '__q' : { #NEWLINE# #INDENT# 'geo' : { #NEWLINE# #INDENT# 'op' : 'get_intersecting' , #NEWLINE# 'test' : { #NEWLINE# #INDENT# 'type' : 'Polygon' , #NEWLINE# 'coordinates' : [ [ [ ( - 10.15 ) , 33.0 ] , [ 1.0 , 33.0 ] , [ 1.0 , 33.5 ] , [ ( - 10.15 ) , 33.5 ] , [ ( - 10.15 ) , 33.0 ] ] ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# assert bbox_post . ok #NEWLINE# results = bbox_post . json ( ) #NEWLINE# assert ( len ( results ) == 2 )