def testTranslateWord(self): for word in self.translations: translation = self.translations[word] self.assertEqual(g2p.translateWord(word), translation)