def test_intentionally_not_round_trip(s, expected): # Our unparse simplifies empty parts, whereas stdlib allows them ret = unparse_parsed_string(parse_format(s)) assert ret == expected
def test_roundtrip_text(s): assert unparse_parsed_string(parse_format(s)) == s