transferpy.test.unit package
Submodules
transferpy.test.unit.test_transfer module
Tests for transfer.py class.
- class transferpy.test.unit.test_transfer.TestArgumentParsing(methodName='runTest')[source]
Bases:
TestCase
Test cases for the command line arguments parsing.
- check_bad_args(args, expected_error=<class 'SystemExit'>)[source]
Check arg parsing fails for the given args.
- test_parallel_checksum_and_checksum_true_in_config()[source]
Test for config given True for both parallel-checksum and checksum, checksum should win
- test_parallel_checksum_arg_when_checksum_true_by_default()[source]
Test for user given –parallel-checksum argument when the –no-checksum is not mentioned or in other words just the –parallel-checksum should enable parallel-checksum
- class transferpy.test.unit.test_transfer.TestFirewall(methodName='runTest')[source]
Bases:
TestCase
Test cases for Firewall module
- test_close_gets_port_from_open()[source]
Test case for Firewall.close function, close takes port number from Firewall.target_port which is set by Firewall.open
- class transferpy.test.unit.test_transfer.TestTransferer(methodName='runTest')[source]
Bases:
TestCase
- test_parallel_checksum_source_and_target_command()[source]
Test to check the parallel_checksum command
- test_run_sanity_checks_failing()[source]
Test case for Transferer.run function which simulates sanity check failure.
- test_run_start_slave()[source]
Test case for Transferer.run function for when it runs the start_slave function with the stop_slave option
- test_run_stoping_slave()[source]
Test case for Transferer.run function which provides stop_slave option
Module contents
transferpy unit tests.