CIME.tests.SystemTests package

Submodules

CIME.tests.SystemTests.test_system_tests_compare_two module

This module contains unit tests of the core logic in SystemTestsCompareTwo.

class CIME.tests.SystemTests.test_system_tests_compare_two.Call(method, arguments)

Bases: tuple

property arguments

Alias for field number 1

property method

Alias for field number 0

class CIME.tests.SystemTests.test_system_tests_compare_two.SystemTestsCompareTwoFake(case1, run_one_suffix='base', run_two_suffix='test', separate_builds=False, multisubmit=False, case2setup_raises_exception=False, run_one_should_pass=True, run_two_should_pass=True, compare_should_pass=True)[source]

Bases: CIME.SystemTests.system_tests_compare_two.SystemTestsCompareTwo

run_indv(suffix='base', st_archive=False)[source]

This fake implementation appends to the log and raises an exception if it’s supposed to

Note that the Call object appended to the log has the current CASE name in addition to the method arguments. (This is mainly to ensure that the proper suffix is used for the proper case, but this extra check can be removed if it’s a maintenance problem.)

class CIME.tests.SystemTests.test_system_tests_compare_two.TestSystemTestsCompareTwo(methodName='runTest')[source]

Bases: unittest.case.TestCase

get_caseroots(casename='mytest')[source]

Returns a tuple (case1root, case2root)

get_compare_phase_name(mytest)[source]

Returns a string giving the compare phase name for this test

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_compare_fails()[source]
test_compare_passes()[source]
test_run1_fails()[source]
test_run2_fails()[source]
test_run_phase_internal_calls()[source]
test_run_phase_internal_calls_multisubmit_phase1()[source]
test_run_phase_internal_calls_multisubmit_phase2()[source]
test_run_phase_passes()[source]
test_setup()[source]
test_setup_case2_exists()[source]
test_setup_error()[source]
test_setup_separate_builds_sharedlibroot()[source]

Module contents