def test_iht_wrong_estimator():
 ratio = 0.7
 est = 'rnd'
 iht = InstanceHardnessThreshold(estimator=est, ratio=ratio, random_state=RND_SEED)
 assert_raises(NotImplementedError, iht.fit_sample, X, Y)

def test_iht_wrong_estimator ( ) : ratio = 0.7 est = 'rnd' iht = InstanceHardnessThreshold ( estimator = est , ratio = ratio , random_state = RND_SEED ) assert_raises ( NotImplementedError , iht . fit_sample , X , Y )
test either if an error is raised when the estimator is unknown .