def test_init_wrong_classifier():
 classifier = 'rnd'
 bc = BalanceCascade(classifier=classifier)
 assert_raises(NotImplementedError, bc.fit_sample, X, Y)

def test_init_wrong_classifier ( ) : classifier = 'rnd' bc = BalanceCascade ( classifier = classifier ) assert_raises ( NotImplementedError , bc . fit_sample , X , Y )
test either if an error is raised the classifier provided is unknown .