()
| 87 | |
| 88 | |
| 89 | def test_pretty(): |
| 90 | f = PlainTextFormatter() |
| 91 | f.for_type(A, foo_printer) |
| 92 | assert f(A()) == "foo" |
| 93 | assert f(B()) == "B()" |
| 94 | assert f(GoodPretty()) == "foo" |
| 95 | # Just don't raise an exception for the following: |
| 96 | f(BadPretty()) |
| 97 | |
| 98 | f.pprint = False |
| 99 | assert f(A()) == "A()" |
| 100 | assert f(B()) == "B()" |
| 101 | assert f(GoodPretty()) == "GoodPretty()" |
| 102 | |
| 103 | |
| 104 | def test_deferred(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…