()
| 767 | |
| 768 | |
| 769 | def 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 | |
| 776 | def test_hyphen_inside_field_name(): |