コード例 #1
0
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
コード例 #2
0
def test_roundtrip_text(s):
    assert unparse_parsed_string(parse_format(s)) == s