def test_renn_iter_wrong():
 max_iter = (-1)
 renn = RepeatedEditedNearestNeighbours(max_iter=max_iter, random_state=RND_SEED)
 assert_raises(ValueError, renn.fit_sample, X, Y)

def test_renn_iter_wrong ( ) : max_iter = ( - 1 ) renn = RepeatedEditedNearestNeighbours ( max_iter = max_iter , random_state = RND_SEED ) assert_raises ( ValueError , renn . fit_sample , X , Y )
test either if an error is raised when the numbr of iteration is wrong .