#NEWLINE# def test_approx( self ) : #NEWLINE# #INDENT# x = self . x #NEWLINE# k = self . k #NEWLINE# eps = 0.1 #NEWLINE# ( d_real , i_real ) = self . kdtree . query ( x , k ) #NEWLINE# ( d , i ) = self . kdtree . query ( x , k , eps = eps ) #NEWLINE# assert_ ( np . all ( ( d <= ( d_real * ( 1 + eps ) ) ) ) )