armi.utils.tests.test_directoryChangers module

Module for testing directoryChangers.

exception armi.utils.tests.test_directoryChangers.ExpectedException[source]

Bases: Exception

class armi.utils.tests.test_directoryChangers.TestDirectoryChangers(methodName='runTest')[source]

Bases: TestCase

Tests for directory changers.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_mpiAction()[source]
test_mpiActionFailsOnNonexistentPath()[source]
test_exception()[source]

Make sure directory changers bring back full folder when an exception is raised.

test_exception_disabled()[source]

Make sure directory changers do not bring back full folder when handling is disabled.

test_change_to_nonexisting_fails()[source]

Fail if destination doesn’t exist.

test_change_to_nonexisting_works_forced()[source]

Succeed with forced creation even when destination doesn’t exist.

test_temporary_cleans()[source]

Make sure Temporary cleaner cleans up temporary files.

test_file_retrieval()[source]

Make sure requested files and/or globs get copied back.

  • Checks basic copy feature

  • Checks rename feature

  • Checks glob expansion

  • Checks copy to output path

test_file_retrieval_missing_file()[source]

Tests that the directory changer still returns a subset of files even if all do not exist.