コード例 #1
0
 def testContainsTrue(self):
     runtime = Runtime()
     tokens = [('ala', ''), ('ma', ''), ('kota', 'NN')]
     words = [('ala', ''), ('kota', 'NN')]
     self.assertTrue(runtime._contains(tokens, words))
コード例 #2
0
 def testContainsFalse(self):
     runtime = Runtime()
     tokens = [('ala', ''), ('ma', ''), ('kota', '')]
     words = [('alexandra', '')]
     self.assertFalse(runtime._contains(tokens, words))