Пример #1
0
 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)
Пример #2
0
 def test_save_as_python_module(self):
     hpy.compileModule(self.hebrew_file)
     self.assert_(os.path.exists(self.python_file))