def test_ada_wrong_nn_obj():
 nn = 'rnd'
 ada = ADASYN(random_state=RND_SEED, n_neighbors=nn)
 assert_raises(ValueError, ada.fit_sample, X, Y)

def test_ada_wrong_nn_obj ( ) : nn = 'rnd' ada = ADASYN ( random_state = RND_SEED , n_neighbors = nn ) assert_raises ( ValueError , ada . fit_sample , X , Y )
test either if an error is raised while passing a wrong nn object .