taucmdr.cli.tests.test_cli_view module
Test functions.
Functions used for unit tests of cli_view.py.
-
class taucmdr.cli.tests.test_cli_view.TexttableTest(methodName='runTest')[source]
Bases: TestCase
Tests for cli_view.Texttable, which overrides a private texttable method.
-
_classSetupFailed = False
-
_class_cleanups = []
On a terminal, header cells are bold and the layout is otherwise unchanged.
-
test_plain_layout()[source]
Without a terminal, the table is the same as plain texttable draws it.
-
taucmdr.cli.tests.test_cli_view._clear_color_cache()[source]
Make termcolor check the environment again. Newer termcolor versions cache whether they can use colors.
-
taucmdr.cli.tests.test_cli_view._draw(table_class, isatty)[source]
Draw a small table with a header, with stdout reporting isatty, and colors forced on.