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.
-
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
-