#NEWLINE# def test_get_nearest_members( self ) : #NEWLINE# #INDENT# for i in range ( 0 , 100 ) : #NEWLINE# #INDENT# d = Datum ( { #NEWLINE# #INDENT# 'nkey1' : i , #NEWLINE# 'nkey2' : ( - i ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . cli . push ( [ d ] ) #NEWLINE# #UNINDENT# q = Datum ( { #NEWLINE# #INDENT# 'nkey1' : 2.0 , #NEWLINE# 'nkey2' : 1.0 , #NEWLINE# #UNINDENT# } ) #NEWLINE# res = self . cli . get_nearest_members ( q ) #NEWLINE# self . assertTrue ( isinstance ( res [ 0 ] , WeightedDatum ) )