def test_ada_sample_wt_fit():
 ada = ADASYN(random_state=RND_SEED)
 assert_raises(RuntimeError, ada.sample, X, Y)

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