MCPcopy Create free account
hub / github.com/astanin/python-tabulate / test_plain_multiline_headerless

Function test_plain_multiline_headerless

test/test_output.py:33–40  ·  view source on GitHub ↗

Output: plain with multiline cells without headers

()

Source from the content-addressed store, hash-verified

31
32
33def test_plain_multiline_headerless():
34 "Output: plain with multiline cells without headers"
35 table = [["foo bar\nbaz\nbau", "hello"], ["", "multiline\nworld"]]
36 expected = "\n".join(
37 ["foo bar hello", " baz", " bau", " multiline", " world"]
38 )
39 result = tabulate(table, stralign="center", tablefmt="plain")
40 assert_equal(expected, result)
41
42
43def test_plain_multiline():

Callers

nothing calls this directly

Calls 2

tabulateFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected