def test_cnn_fit_sample_with_wrong_object():
 knn = 'rnd'
 cnn = CondensedNearestNeighbour(random_state=RND_SEED, n_neighbors=knn)
 assert_raises(ValueError, cnn.fit_sample, X, Y)

def test_cnn_fit_sample_with_wrong_object ( ) : knn = 'rnd' cnn = CondensedNearestNeighbour ( random_state = RND_SEED , n_neighbors = knn ) assert_raises ( ValueError , cnn . fit_sample , X , Y )
test either if an error is raised while a wrong object is given .