Output: plain with multiline cells with headers
()
| 41 | |
| 42 | |
| 43 | def test_plain_multiline(): |
| 44 | "Output: plain with multiline cells with headers" |
| 45 | table = [[2, "foo\nbar"]] |
| 46 | headers = ("more\nspam \x1b[31meggs\x1b[0m", "more spam\n& eggs") |
| 47 | expected = "\n".join( |
| 48 | [ |
| 49 | " more more spam", |
| 50 | " spam \x1b[31meggs\x1b[0m & eggs", |
| 51 | " 2 foo", |
| 52 | " bar", |
| 53 | ] |
| 54 | ) |
| 55 | result = tabulate(table, headers, tablefmt="plain") |
| 56 | assert_equal(expected, result) |
| 57 | |
| 58 | |
| 59 | def test_plain_multiline_with_links(): |
nothing calls this directly
no test coverage detected