MCPcopy Create free account
hub / github.com/coooodeer/parse-rust / test_parser_format

Function test_parser_format

tests/test_parse.py:769–773  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

767
768
769def test_parser_format():
770 parser = parse.compile("hello {}")
771 assert parser.format.format("world") == "hello world"
772 with pytest.raises(AttributeError):
773 parser.format = "hi {}"
774
775
776def test_hyphen_inside_field_name():

Callers

nothing calls this directly

Calls 2

compileMethod · 0.80
formatMethod · 0.80

Tested by

no test coverage detected