def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def test_parse_statements():
    parsed_statement = mariofile.parse_statements(STRING_PARSE_STATEMENTS.splitlines())
    assert '\n'.join(parsed_statement) == "statement\nstatement con commento"