

def testTranslateWords(self):
    with mock.patch('subprocess.Popen', return_value=TestPatchedG2P.DummyProc()):
        results = self.g2pconv.translate(WORDS).keys()
        for word in WORDS:
            self.assertIn(word, results)

dataset/ETHPy150Open jasperproject/jasper-client/tests/test_g2p.py TestPatchedG2P.testTranslateWords/original