def test_smote_wrong_kind():
 kind = 'rnd'
 smote = SMOTE(kind=kind, random_state=RND_SEED)
 assert_raises(ValueError, smote.fit_sample, X, Y)

def test_smote_wrong_kind ( ) : kind = 'rnd' smote = SMOTE ( kind = kind , random_state = RND_SEED ) assert_raises ( ValueError , smote . fit_sample , X , Y )
test either if an error is raised when the wrong kind of smote is given .