taucmdr.cli.tests.test_arguments module¶
Test functions.
Functions used for unit tests of arguments.py.
- class taucmdr.cli.tests.test_arguments.ArgumentsTest(methodName='runTest')[source]¶
Bases:
TestCaseTests for
taucmdr.cli.arguments.- _classSetupFailed = False¶
- _class_cleanups = []¶
- class taucmdr.cli.tests.test_arguments.ParseBooleanActionTest(methodName='runTest')[source]¶
Bases:
TestCaseTests for the T/F argument action.
- _classSetupFailed = False¶
- _class_cleanups = []¶
- class taucmdr.cli.tests.test_arguments.ParsePackagePathActionTest(methodName='runTest')[source]¶
Bases:
TestCaseTests for the –<package> argument action shared by every software package option.
- _classSetupFailed = False¶
- _class_cleanups = []¶
- test_existing_archive_made_absolute()[source]¶
A relative path to an existing file (an archive) becomes absolute.
- test_existing_directory_made_absolute()[source]¶
A relative path to an existing directory becomes absolute.
- test_keywords()[source]¶
‘download’ and ‘nightly’ are accepted in any case and normalized to lower case.
- test_missing_path_rejected()[source]¶
A path that exists neither as a directory nor a readable file is rejected.
- test_rejected_keywords()[source]¶
Values listed in rejected are refused with the given reason, regardless of case.