()
| 252 | nt.assert_in("_repr_html_", captured.stdout) |
| 253 | |
| 254 | def test_nowarn_notimplemented(): |
| 255 | f = HTMLFormatter() |
| 256 | class HTMLNotImplemented(object): |
| 257 | def _repr_html_(self): |
| 258 | raise NotImplementedError |
| 259 | h = HTMLNotImplemented() |
| 260 | with capture_output() as captured: |
| 261 | result = f(h) |
| 262 | nt.assert_is(result, None) |
| 263 | nt.assert_equal("", captured.stderr) |
| 264 | nt.assert_equal("", captured.stdout) |
| 265 | |
| 266 | def test_warn_error_for_type(): |
| 267 | f = HTMLFormatter() |
nothing calls this directly
no test coverage detected