def test_check_update_with_no_data():
 prev_points = 100
 mean = 0.0
 var = 1.0
 x_empty = np.empty((0, X.shape[1]))
 (tmean, tvar) = GaussianNB._update_mean_variance(prev_points, mean, var, x_empty)
 assert_equal(tmean, mean)
 assert_equal(tvar, var)

def test_check_update_with_no_data ( ) : prev_points = 100 mean = 0.0 var = 1.0 x_empty = np . empty ( ( 0 , X . shape [ 1 ] ) ) ( tmean , tvar ) = GaussianNB . _update_mean_variance ( prev_points , mean , var , x_empty ) assert_equal ( tmean , mean ) assert_equal ( tvar , var )
test when the partial fit is called without any data .