コード例 #1
0
ファイル: tests.py プロジェクト: yank07/openfonacide
 def test_token_compare_empty(self):
     c1 = u"ASDF"
     c2 = u"PORQ"
     t = {u"ZITH": 1}
     self.assertTrue(token_compare(c1, c2, t))
コード例 #2
0
ファイル: tests.py プロジェクト: yank07/openfonacide
 def test_token_compare_false(self):
     c1 = u"THIS IS A"
     c2 = u"THIS IS B"
     t = {u"THIS": 1, u"B": 2}
     self.assertFalse(token_compare(c1, c2, t))
コード例 #3
0
ファイル: tests.py プロジェクト: yank07/openfonacide
 def test_token_compare_true(self):
     c1 = u"THIS IS A STRING"
     c2 = u"THIS IS OTHER STRING"
     t = {u"THIS": 1, u"IS": 2, u"STRING": 4}
     self.assertTrue(token_compare(c1, c2, t))