CIME.tests.utils.MockMachines

class CIME.tests.utils.MockMachines(name, os_)[source]

Bases: object

A mock version of the Machines object to simplify testing.

Methods

__init__

Store the name.

get_default_MPIlib

get_default_compiler

get_machine_name

Return the name we were given.

get_value

Allow the operating system to be queried.

is_valid_MPIlib

Assume all MPILIB settings are valid.

is_valid_compiler

Assume all compilers are valid.

get_machine_name()[source]

Return the name we were given.

get_value(var_name)[source]

Allow the operating system to be queried.

is_valid_MPIlib(_)[source]

Assume all MPILIB settings are valid.

is_valid_compiler(_)[source]

Assume all compilers are valid.