def test_enn_not_good_object():
 nn = 'rnd'
 enn = EditedNearestNeighbours(n_neighbors=nn, random_state=RND_SEED, kind_sel='mode')
 assert_raises(ValueError, enn.fit_sample, X, Y)

def test_enn_not_good_object ( ) : nn = 'rnd' enn = EditedNearestNeighbours ( n_neighbors = nn , random_state = RND_SEED , kind_sel = 'mode' ) assert_raises ( ValueError , enn . fit_sample , X , Y )
test either if an error is raised while a wrong type of nn is given .