(self)
| 10 | assert p.initial == c |
| 11 | |
| 12 | def can_take_initial_and_other_contexts(self) -> None: |
| 13 | c1 = Context("foo") |
| 14 | c2 = Context("bar") |
| 15 | p = Parser(initial=Context(), contexts=[c1, c2]) |
| 16 | assert p.contexts["foo"] == c1 |
| 17 | assert p.contexts["bar"] == c2 |
| 18 | |
| 19 | def can_take_just_other_contexts(self) -> None: |
| 20 | c = Context("foo") |