()
| 151 | f.lookup(A()) |
| 152 | |
| 153 | def test_lookup_string(): |
| 154 | f = PlainTextFormatter() |
| 155 | type_str = '%s.%s' % (C.__module__, 'C') |
| 156 | |
| 157 | f.for_type(type_str, foo_printer) |
| 158 | nt.assert_is(f.lookup(C()), foo_printer) |
| 159 | # should move from deferred to imported dict |
| 160 | nt.assert_not_in(_mod_name_key(C), f.deferred_printers) |
| 161 | nt.assert_in(C, f.type_printers) |
| 162 | |
| 163 | def test_lookup_by_type(): |
| 164 | f = PlainTextFormatter() |
nothing calls this directly
no test coverage detected