def test_bc_fit_single_class():
 ratio = 'auto'
 bc = BalanceCascade(ratio=ratio, random_state=RND_SEED)
 y_single_class = np.zeros((X.shape[0],))
 assert_warns(UserWarning, bc.fit, X, y_single_class)

def test_bc_fit_single_class ( ) : ratio = 'auto' bc = BalanceCascade ( ratio = ratio , random_state = RND_SEED ) y_single_class = np . zeros ( ( X . shape [ 0 ] , ) ) assert_warns ( UserWarning , bc . fit , X , y_single_class )
test either if an error when there is a single class .