()
| 76 | |
| 77 | |
| 78 | def test_dict_style_fields(): |
| 79 | res = parse.parse("{hello[world]}_{hello[foo][baz]}_{simple}", "a_b_c") |
| 80 | assert res.named["hello"]["world"] == "a" |
| 81 | assert res.named["hello"]["foo"]["baz"] == "b" |
| 82 | assert res.named["simple"] == "c" |
| 83 | |
| 84 | |
| 85 | def test_dot_separated_fields_name_collisions(): |