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)
def test_save_as_python_module(self): hpy.compileModule(self.hebrew_file) self.assert_(os.path.exists(self.python_file))