()
| 192 | |
| 193 | |
| 194 | def test_lookup(): |
| 195 | f = PlainTextFormatter() |
| 196 | |
| 197 | f.for_type(C, foo_printer) |
| 198 | assert f.lookup(C()) is foo_printer |
| 199 | with pytest.raises(KeyError): |
| 200 | f.lookup(A()) |
| 201 | |
| 202 | |
| 203 | def test_lookup_string(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…