Example #1
0
File: test_hpy.py Project: 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)
Example #2
0
File: test_hpy.py Project: nirs/hpy
 def test_save_as_python_module(self):
     hpy.compileModule(self.hebrew_file)
     self.assert_(os.path.exists(self.python_file))