def test_sample_wt_fit():
 ratio = 'auto'
 ee = EasyEnsemble(ratio=ratio, random_state=RND_SEED)
 assert_raises(RuntimeError, ee.sample, X, Y)

def test_sample_wt_fit ( ) : ratio = 'auto' ee = EasyEnsemble ( ratio = ratio , random_state = RND_SEED ) assert_raises ( RuntimeError , ee . sample , X , Y )
test either if an error is raised when sample is called before fitting .