def test_round_trip(): source = dedent(''' def x(): """hahaha""" func''') f = FastParser(load_grammar(), u(source)) assert f.get_parsed_node().get_code() == source