def test_fit_sample_wrong_object():
 ratio = 'auto'
 cluster = 'rnd'
 cc = ClusterCentroids(ratio=ratio, random_state=RND_SEED, estimator=cluster)
 assert_raises(ValueError, cc.fit_sample, X, Y)

def test_fit_sample_wrong_object ( ) : ratio = 'auto' cluster = 'rnd' cc = ClusterCentroids ( ratio = ratio , random_state = RND_SEED , estimator = cluster ) assert_raises ( ValueError , cc . fit_sample , X , Y )
test fit and sample using a kmeans object .