Exemple #1
0
 def test_script_parsing_formatting(self):
     actual = michelson_to_micheline(micheline_to_michelson(self.script['code']))
     self.assertEqual(self.script['code'], actual)
Exemple #2
0
 def from_python_object(cls, py_obj) -> 'LambdaType':
     assert isinstance(py_obj,
                       str), f'expected string, got {type(py_obj).__name__}'
     value = michelson_to_micheline(py_obj)
     return cls.from_micheline_value(value)