CIME.tests.SystemTests.test_utils package

Submodules

CIME.tests.SystemTests.test_utils.test_user_nl_utils module

class CIME.tests.SystemTests.test_utils.test_user_nl_utils.TestUserNLCopier(methodName='runTest')[source]

Bases: unittest.case.TestCase

assertFileContentsEqual(expected, filepath, msg=None)[source]

Asserts that the contents of the file given by ‘filepath’ are equal to the string given by ‘expected’. ‘msg’ gives an optional message to be printed if the assertion fails.

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_append()[source]
test_append_multiple_files()[source]
test_append_without_files_raises_exception()[source]
write_user_nl_file(component, contents, suffix='')[source]

Write contents to a user_nl file in the case directory. Returns the basename (i.e., not the full path) of the file that is created.

For a component foo, with the default suffix of ‘’, the file name will be user_nl_foo

If the suffix is ‘_0001’, the file name will be user_nl_foo_0001

Module contents