__str__
| 309 | assert c.missing_positional_args == [] |
| 310 | |
| 311 | class str: |
| 312 | "__str__" |
| 313 | |
| 314 | def with_no_args_output_is_simple(self): |
| 315 | assert str(Context("foo")) == "<parser/Context 'foo'>" |
| 316 | |
| 317 | def args_show_as_repr(self): |
| 318 | string = str(Context("bar", args=[Argument("arg1")])) |
| 319 | assert ( |
| 320 | string == "<parser/Context 'bar': {'arg1': <Argument: arg1>}>" |
| 321 | ) # noqa |
no outgoing calls
no test coverage detected