()
| 46 | pp.text('foo') |
| 47 | |
| 48 | def test_pretty(): |
| 49 | f = PlainTextFormatter() |
| 50 | f.for_type(A, foo_printer) |
| 51 | nt.assert_equal(f(A()), 'foo') |
| 52 | nt.assert_equal(f(B()), 'B()') |
| 53 | nt.assert_equal(f(GoodPretty()), 'foo') |
| 54 | # Just don't raise an exception for the following: |
| 55 | f(BadPretty()) |
| 56 | |
| 57 | f.pprint = False |
| 58 | nt.assert_equal(f(A()), 'A()') |
| 59 | nt.assert_equal(f(B()), 'B()') |
| 60 | nt.assert_equal(f(GoodPretty()), 'GoodPretty()') |
| 61 | |
| 62 | |
| 63 | def test_deferred(): |
nothing calls this directly
no test coverage detected