#NEWLINE# def test_simple_spatial( self ) : #NEWLINE# #INDENT# spq = SpatialQuery ( ) #NEWLINE# spq . start_range = [ None , ( - 5 ) ] #NEWLINE# spq . end_range = [ None , 5 ] #NEWLINE# rows_found = [ self for r in self . cb . query ( 'geo' , 'simpleGeo' , query = spq ) ] #NEWLINE# self . assertEqual ( 2 , len ( rows_found ) ) #NEWLINE# spq . start_range = [ ( - 130 ) , None ] #NEWLINE# spq . end_range = [ ( - 110 ) , None ] #NEWLINE# rows_found = [ r for r in self . cb . query ( 'geo' , 'simpleGeo' , query = spq ) ] #NEWLINE# self . assertEqual ( 2 , len ( rows_found ) ) #NEWLINE# spq = SpatialQuery ( ) #NEWLINE# rows_found = [ r for r in self . cb . query ( 'geo' , 'simpleGeo' , query = spq ) ] #NEWLINE# self . assertTrue ( ( len ( rows_found ) > 2 ) )