def test_gnb_prior_greater_one():
 clf = GaussianNB(priors=np.array([2.0, 1.0]))
 assert_raises(ValueError, clf.fit, X, y)

def test_gnb_prior_greater_one ( ) : clf = GaussianNB ( priors = np . array ( [ 2.0 , 1.0 ] ) ) assert_raises ( ValueError , clf . fit , X , y )
test if an error is raised if the sum of prior greater than one .