Ejemplo n.º 1
0
 def testContainsTrue(self):
     runtime = Runtime()
     tokens = [('ala', ''), ('ma', ''), ('kota', 'NN')]
     words = [('ala', ''), ('kota', 'NN')]
     self.assertTrue(runtime._contains(tokens, words))
Ejemplo n.º 2
0
 def testContainsFalse(self):
     runtime = Runtime()
     tokens = [('ala', ''), ('ma', ''), ('kota', '')]
     words = [('alexandra', '')]
     self.assertFalse(runtime._contains(tokens, words))