def test_oss_with_wrong_object():
 knn = 'rnd'
 oss = OneSidedSelection(random_state=RND_SEED, n_neighbors=knn)
 assert_raises(ValueError, oss.fit_sample, X, Y)

def test_oss_with_wrong_object ( ) : knn = 'rnd' oss = OneSidedSelection ( random_state = RND_SEED , n_neighbors = knn ) assert_raises ( ValueError , oss . fit_sample , X , Y )
test if an error is raised while passing a wrong object .