def test_7_Score(self):
     #print('enc:',sys.stdout.encoding)
     wordList = string_util.loadList("countries.txt", True)
     #print('wordList:',wordList)
     bm = stringmatcher.suggestions(wordList, "مصر")
     #print('bm:',bm)
     self.assertTrue(set(bm).__contains__('جمهورية مصر العربية'))
 def test_4_Score(self):
     wordList = string_util.loadList("countries.txt", True)
     bm = stringmatcher.suggestions(wordList, "france")
     self.assertTrue(set(bm).__contains__('france'))
 def test_6_Score(self):
     wordList = string_util.loadList("countries.txt", True)
     bm = stringmatcher.suggestions(wordList, "unitedstates")
     #print('bm6: ',bm)
     self.assertTrue(set(bm).__contains__('united states of america'))
 def test_3_Score(self):
     wordList = string_util.loadList("countries.txt", True)
     bm = stringmatcher.suggestions(wordList, "bretain")
     self.assertTrue(set(bm).__contains__('great britain'))