Exemple #1
0
 def test_get_tally(self):
     bc = BayesCategory('foo')
     bc.train_token('foo', 5)
     self.assertEqual(5, bc.get_tally())