testing.unit.test_cli_main module

class testing.unit.test_cli_main.CommandlineTest(methodName='runTest')[source]

Bases: UnitTestCase

Test parse_commandline_options

_classSetupFailed = False
_class_cleanups = []
good_args = {'count': '5', 'remove_time': '100', 'source_path': 'foo/bar', 'source_url': 'file://duptest', 'target_path': 'foo/bar', 'target_url': 'file://duptest'}
run_all_commands_with_errors(new_args, err_msg)[source]

Test all commands with the supplied argument list. Only test command if new_args contains needed arg.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_bad_command()[source]

test bad commands

test_changed_removed()[source]

test changed/removed in odd places.

test_encryption_options()[source]

test encrypt/sign key handling

test_full_command()[source]

test backup, restore, verify with explicit commands

test_full_command_errors_bad_integer()[source]

test backup, restore, verify with explicit commands - bad integer

test_full_command_errors_bad_time_string()[source]

test backup, restore, verify with explicit commands - bad time string

test_full_command_errors_bad_url()[source]

test backup, restore, verify with explicit commands - bad url

test_full_command_errors_reversed_args()[source]

test backup, restore, verify with explicit commands - reversed arg

test_help_commands()[source]

Test -h/–help

test_implied_commands()[source]

test implied commands

test_integer_args()[source]

test implied commands

test_intermixed_args()[source]

test intermixed args.

test_list_commands()[source]

test list commands like ssh_options, etc.

test_log_options()[source]

test log options.

test_miscellaneous()[source]

test miscellaneous parameters

test_option_aliases()[source]

test short option aliases

test_regression_issues()[source]

test regression issues.

test_too_many_positionals()[source]

test bad commands