#NEWLINE# def test_filter_distance( self ) : #NEWLINE# #INDENT# coords = [ 14.790612099999978 , 40.914388 ] #NEWLINE# s = self . get_s ( ) . filter ( F ( location__distance = ( '5km' , coords [ 1 ] , s [ 0 ] ) ) ) #NEWLINE# eqish_ ( s . build_search ( ) , { #NEWLINE# #INDENT# 'filter' : { #NEWLINE# #INDENT# 'geo_distance' : { #NEWLINE# #INDENT# 'distance' : '5km' , #NEWLINE# 'location' : [ 14.790612099999978 , 40.914388 ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# eq_ ( len ( s ) , 4 )