taucmdr.cli.commands.tests.test_help module

Test functions.

Functions used for unit tests of help.py.

class taucmdr.cli.commands.tests.test_help.HelpTest(methodName='runTest')[source]

Bases: TestCase

Unit tests for taucmdr help

_classSetupFailed = False
_class_cleanups = []
test_command_before_file()[source]

A command name is looked up as a command even when a file has the same name.

test_directory_name()[source]

Help for a directory that isn’t a command produces an unknown command error.

test_file_hint_outside_project()[source]

tau help <file> prints the file hint without needing a project.

test_h_arg()[source]
test_help()[source]
test_help_arg()[source]
test_known_file_name()[source]

Help for a makefile suggests the build command.

test_source_file()[source]

Help for a source file suggests the build command.

test_source_file_types()[source]

Source files are recognized by extension, whether or not the host has a mime.types file.

test_unknown_binary_file()[source]

A binary file without a recognized extension is identified as binary.

test_unknown_name()[source]

Help for a name that isn’t a command produces an unknown command error.

test_unknown_text_file()[source]

A text file without a recognized extension is identified as text.