def test_error_wrong_object():
 smote = 'rnd'
 tomek = 'rnd'
 smt = SMOTETomek(smote=smote, random_state=RND_SEED)
 assert_raises(ValueError, smt.fit, X, Y)
 smt = SMOTETomek(tomek=tomek, random_state=RND_SEED)
 assert_raises(ValueError, smt.fit, X, Y)

def test_error_wrong_object ( ) : smote = 'rnd' tomek = 'rnd' smt = SMOTETomek ( smote = smote , random_state = RND_SEED ) assert_raises ( ValueError , smt . fit , X , Y ) smt = SMOTETomek ( tomek = tomek , random_state = RND_SEED ) assert_raises ( ValueError , smt . fit , X , Y )
test either if an error is raised while wrong objects are provided at the initialization .