()
| 143 | nt.assert_is(f.for_type_by_name(mod, 'C', None), foo_printer) |
| 144 | |
| 145 | def test_lookup(): |
| 146 | f = PlainTextFormatter() |
| 147 | |
| 148 | f.for_type(C, foo_printer) |
| 149 | nt.assert_is(f.lookup(C()), foo_printer) |
| 150 | with nt.assert_raises(KeyError): |
| 151 | f.lookup(A()) |
| 152 | |
| 153 | def test_lookup_string(): |
| 154 | f = PlainTextFormatter() |
nothing calls this directly
no test coverage detected