def test_smote_sample_wt_fit():
 smote = SMOTE(random_state=RND_SEED)
 assert_raises(RuntimeError, smote.sample, X, Y)

def test_smote_sample_wt_fit ( ) : smote = SMOTE ( random_state = RND_SEED ) assert_raises ( RuntimeError , smote . sample , X , Y )
test either if an error is raised when sample is called before fitting .