()
| 201 | |
| 202 | |
| 203 | def test_lookup_string(): |
| 204 | f = PlainTextFormatter() |
| 205 | type_str = "%s.%s" % (C.__module__, "C") |
| 206 | |
| 207 | f.for_type(type_str, foo_printer) |
| 208 | assert f.lookup(C()) is foo_printer |
| 209 | # should move from deferred to imported dict |
| 210 | assert _mod_name_key(C) not in f.deferred_printers |
| 211 | assert C in f.type_printers |
| 212 | |
| 213 | |
| 214 | def test_lookup_by_type(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…