MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / test_1_level

Function test_1_level

17-it-generator/tree/extra/test_drawtree.py:3–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1from drawtree import tree, render_lines
2
3def test_1_level():
4 result = list(render_lines(tree(BrokenPipeError)))
5 expected = [
6 'BrokenPipeError',
7 ]
8 assert expected == result
9
10
11def test_2_levels_1_leaf():

Callers

nothing calls this directly

Calls 2

render_linesFunction · 0.90
treeFunction · 0.90

Tested by

no test coverage detected