()
| 83 | |
| 84 | |
| 85 | def test_dot_separated_fields_name_collisions(): |
| 86 | # this should just work and provide the named value |
| 87 | res = parse.parse("{a_.b}_{a__b}_{a._b}_{a___b}", "a_b_c_d") |
| 88 | assert res.named["a_.b"] == "a" |
| 89 | assert res.named["a__b"] == "b" |
| 90 | assert res.named["a._b"] == "c" |
| 91 | assert res.named["a___b"] == "d" |
| 92 | |
| 93 | |
| 94 | def test_invalid_groupnames_are_handled_gracefully(): |