Beispiel #1
0
 def test_wordWeightReactionToUnknownWords(self):
     result = processor.get_word_weight(('Samsung',1))
     self.assertEqual(result, 1)
Beispiel #2
0
 def test_wordWeightIsTinyFora(self):
     a = ('a',1)
     cat = ('cat',1)
     result1 = processor.get_word_weight(a)
     result1 = processor.get_word_weight(cat)
     self.assertGreater(cat, a)