def test_give_classifier_wrong_obj():
 ratio = 'auto'
 classifier = 2
 bc = BalanceCascade(ratio=ratio, random_state=RND_SEED, return_indices=True, estimator=classifier)
 assert_raises(ValueError, bc.fit_sample, X, Y)

def test_give_classifier_wrong_obj ( ) : ratio = 'auto' classifier = 2 bc = BalanceCascade ( ratio = ratio , random_state = RND_SEED , return_indices = True , estimator = classifier ) assert_raises ( ValueError , bc . fit_sample , X , Y )
test either if an error is raised while a wrong object is passed .