#NEWLINE# def test_in_ball_outside( self ) : #NEWLINE# #INDENT# l = self . T . query_ball_point ( ( self . x + 1.0 ) , self . d , p = l . p , eps = self . eps ) #NEWLINE# for i in l : #NEWLINE# #INDENT# assert_ ( ( self . distance ( self . data [ i ] , self . x , self . p ) <= ( self . d * ( 1.0 + self . eps ) ) ) ) #NEWLINE# #UNINDENT# l = self . T . query_ball_point ( ( self . x - 1.0 ) , self . d , p = self . p , eps = self . eps ) #NEWLINE# for i in l : #NEWLINE# #INDENT# assert_ ( ( self . distance ( self . data [ i ] , self . x , self . p ) <= ( self . d * ( 1.0 + self . eps ) ) ) )