toil.test.src.miscTests

Module Contents

Classes

MiscTests

This class contains miscellaneous tests that don't have enough content to be their own test

TestPanic

A common base class for Toil tests.

Attributes

log

toil.test.src.miscTests.log[source]
class toil.test.src.miscTests.MiscTests(methodName='runTest')[source]

Bases: toil.test.ToilTest

This class contains miscellaneous tests that don’t have enough content to be their own test file, and that don’t logically fit in with any of the other test suites.

setUp()[source]

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

testIDStability()[source]
testGetSizeOfDirectoryWorks()[source]

A test to make sure toil.common.getDirSizeRecursively does not underestimate the amount of disk space needed.

Disk space allocation varies from system to system. The computed value should always be equal to or slightly greater than the creation value. This test generates a number of random directories and randomly sized files to test this using getDirSizeRecursively.

test_atomic_install()[source]
test_atomic_install_dev()[source]
test_atomic_context_ok()[source]
test_atomic_context_error()[source]
test_call_command_ok()[source]
test_call_command_err()[source]
class toil.test.src.miscTests.TestPanic(methodName='runTest')[source]

Bases: toil.test.ToilTest

A common base class for Toil tests.

Please have every test case directly or indirectly inherit this one.

When running tests you may optionally set the TOIL_TEST_TEMP environment variable to the path of a directory where you want temporary test files be placed. The directory will be created if it doesn’t exist. The path may be relative in which case it will be assumed to be relative to the project root. If TOIL_TEST_TEMP is not defined, temporary files and directories will be created in the system’s default location for such files and any temporary files or directories left over from tests will be removed automatically removed during tear down. Otherwise, left-over files will not be removed.

test_panic_by_hand()[source]
test_panic()[source]
test_panic_with_secondary()[source]
test_nested_panic()[source]
try_and_panic_by_hand()[source]
try_and_panic()[source]
try_and_panic_with_secondary()[source]
try_and_nested_panic_with_secondary()[source]