Exemplo n.º 1
0
Arquivo: test_hpy.py Projeto: nirs/hpy
 def test_translate_to_python(self):
     hpy.compileModule(self.hebrew_file)
     python = codecs.open(self.python_file, 'rb', 'utf-8').read()
     self.assertEqual(python, self.python)
Exemplo n.º 2
0
Arquivo: test_hpy.py Projeto: nirs/hpy
 def test_save_as_python_module(self):
     hpy.compileModule(self.hebrew_file)
     self.assert_(os.path.exists(self.python_file))