taucmdr.cli.commands.system.tests.test_import module
Test functions.
Functions used for unit tests of system/import.py.
-
class taucmdr.cli.commands.system.tests.test_import.ImportTest(methodName='runTest')[source]
Bases: TestCase
Tests for system.import.
-
_bundle(*names)[source]
-
_classSetupFailed = False
-
_class_cleanups = []
-
_tau_import()[source]
-
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_import_adds_dated_nightly()[source]
-
test_import_copies_archives()[source]
-
test_import_copy_failure()[source]
A copy that fails partway leaves nothing under the archive’s name in the source directory.
-
test_import_keeps_different_file()[source]
-
test_import_newer_nightly()[source]
Importing a newer nightly links the plain name to it, replacing an outdated copy.
-
test_import_readonly_prefix()[source]
Importing into a system prefix that isn’t writable is an error, not a crash.
-
test_import_refused_names()[source]
Only known source archives are imported.
-
test_import_rejects_corrupt_archive()[source]
A truncated archive stops the import before anything is copied.
-
test_import_skips_identical()[source]
-
test_offline_acquire()[source]
An installer uses an imported archive without downloading anything.
-
test_readonly_nightly_not_renamed()[source]
A TAU nightly build uses a read-only source directory that holds both nightly names.