cis_interface.drivers.tests package

Submodules

cis_interface.drivers.tests.test_CMakeModelDriver module

class cis_interface.drivers.tests.test_CMakeModelDriver.TestCMakeModelDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_CMakeModelDriver.TestCMakeModelParam, cis_interface.drivers.tests.test_ModelDriver.TestModelDriver

Test runner for CMakeModelDriver.

class cis_interface.drivers.tests.test_CMakeModelDriver.TestCMakeModelDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_CMakeModelDriver.TestCMakeModelParam, cis_interface.drivers.tests.test_ModelDriver.TestModelDriverNoStart

Test runner for CMakeModelDriver without start.

teardown()[source]

Remove the instance, stoppping it.

class cis_interface.drivers.tests.test_CMakeModelDriver.TestCMakeModelParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelParam

Test parameters for CMakeModelDriver.

driver = 'CMakeModelDriver'
test_sbdir()[source]

Test that source/build directories set correctly.

cis_interface.drivers.tests.test_CMakeModelDriver.test_CMakeModelDriver_error_cmake()[source]

Test CMakeModelDriver error for invalid cmake args.

cis_interface.drivers.tests.test_CMakeModelDriver.test_CMakeModelDriver_error_nofile()[source]

Test CMakeModelDriver error for missing CMakeLists.txt.

cis_interface.drivers.tests.test_CMakeModelDriver.test_CMakeModelDriver_error_notarget()[source]

Test CMakeModelDriver error for invalid target.

cis_interface.drivers.tests.test_CMakeModelDriver.test_CMakeModelDriver_no_C_library()[source]

Test CMakeModelDriver error when C library not installed.

cis_interface.drivers.tests.test_CMakeModelDriver.test_create_include()[source]

Test create_include.

cis_interface.drivers.tests.test_ClientDriver module

class cis_interface.drivers.tests.test_ClientDriver.TestClientDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ClientDriver.TestClientParam, cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

Test class for ClientDriver class.

setup(*args, **kwargs)[source]

Wait for drivers to start.

test_send_recv(msg_send=None)[source]

Test routing of a short message between client and server.

test_send_recv_nolimit()[source]

Test routing of a large message between client and server.

class cis_interface.drivers.tests.test_ClientDriver.TestClientDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ClientDriver.TestClientParam, cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriverNoStart

Test class for ClientDriver class without start.

test_error_attributes()[source]

Test error raised when trying to access attributes set on recv.

class cis_interface.drivers.tests.test_ClientDriver.TestClientParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionParam

Test parameters for ClientDriver class.

create_server(comm_address=None)[source]

Create a new ServerDriver instance.

inst_kwargs

Keyword arguments for tested class.

Type:dict
recv_comm_kwargs

Keyword arguments for recv comm.

Type:dict
send_comm_kwargs

Keyword arguments for send comm.

Type:dict
setup(*args, **kwargs)[source]

Recover new client message on start-up.

teardown()[source]

Recover end client message on teardown.

cis_interface.drivers.tests.test_ClientResponseDriver module

class cis_interface.drivers.tests.test_ClientResponseDriver.TestClientResponseDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ClientResponseDriver.TestClientResponseParam, cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

Test class for ClientResponseDriver class.

test_send_recv()[source]

Test sending/receiving small message.

test_send_recv_nolimit()[source]

Test sending/receiving large message.

class cis_interface.drivers.tests.test_ClientResponseDriver.TestClientResponseDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ClientResponseDriver.TestClientResponseParam, cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriverNoStart

Test class for ClientResponseDriver class without start.

get_fresh_name()[source]

Get a fresh name for a new instance that won’t overlap with the base.

class cis_interface.drivers.tests.test_ClientResponseDriver.TestClientResponseParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionParam

Test parameters for ClientResponseDriver class.

inst_args

Driver arguments.

Type:tuple
inst_kwargs

Keyword arguments for tested class.

Type:dict

cis_interface.drivers.tests.test_ConnectionDriver module

class cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionParam, cis_interface.drivers.tests.test_Driver.TestDriver

Test class for the ConnectionDriver class.

assert_after_terminate()[source]

Assertions to make after terminating the driver instance.

assert_before_stop(check_open=True)[source]

Assertions to make before stopping the driver instance.

run_before_terminate()[source]

Commands to run while the instance is running, before terminate.

setup(*args, **kwargs)[source]

Initialize comm object pair.

test_early_close()[source]

Test early deletion of message queue.

test_send_recv()[source]

Test sending/receiving small message.

test_send_recv_nolimit()[source]

Test sending/receiving large message.

class cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriverFork(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

Test class for the ConnectionDriver class between fork comms.

inst_kwargs

Keyword arguments for tested class.

Type:dict
setup(*args, **kwargs)[source]

Initialize comm object pair.

class cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionParam, cis_interface.drivers.tests.test_Driver.TestDriverNoStart

Test class for the ConnectionDriver class without start.

get_fresh_error_instance(comm, error_on_init=False)[source]

Get a driver instance with ErrorComm class for one or both comms.

get_fresh_name()[source]

Get a fresh name for a new instance that won’t overlap with the base.

test_error_close_icomm()[source]

Test forwarding of error from close of icomm.

test_error_close_ocomm()[source]

Test forwarding of error from close of ocomm.

test_error_init_ocomm()[source]

Test forwarding of error from init of ocomm.

test_error_open_fails()[source]

Test error raised when comms fail to open.

test_error_open_icomm()[source]

Test fowarding of error from open of icomm.

test_send_recv()[source]

Test sending/receiving with queues closed.

class cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriverTranslate(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

Test class for the ConnectionDriver class with translator.

inst_kwargs

Keyword arguments for tested class.

Type:dict
class cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_Driver.TestParam

Test parameters for the ConnectionDriver class.

assert_msg_equal(x, y)[source]

Assert that two messages are equivalent.

cleanup_comm_classes

Comm classes that should be cleaned up following the test.

Type:list
comm_name = 'ZMQComm'
description_prefix

String prefix to prepend docstr test message with.

driver = 'ConnectionDriver'
get_options()[source]

Get testing options.

icomm_import_cls

Class used for connection input comm.

Type:class
icomm_kws

Keyword arguments for connection input comm.

Type:dict
icomm_name = 'ZMQComm'
inst_kwargs

Keyword arguments for tested class.

Type:dict
is_input

True if the connection is for input.

Type:bool
is_output

True if the connection is for output.

Type:bool
maxMsgSize

Maximum message size.

Type:int
msg_long

Small test message for sending.

Type:str
ocomm_import_cls

Class used for connection output comm.

Type:class
ocomm_kws

Keyword arguments for connection output comm.

Type:dict
ocomm_name = 'ZMQComm'
recv_comm_kwargs

Keyword arguments for recv comm.

Type:dict
send_comm_kwargs

Keyword arguments for send comm.

Type:dict
setup(*args, **kwargs)[source]

Initialize comm object pair.

teardown(*args, **kwargs)[source]

Destroy comm object pair.

test_msg

Test message that should be used for any send/recv tests.

Type:str
testing_option_kws = {}
class cis_interface.drivers.tests.test_ConnectionDriver.TestDefaultCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

args = 'test'
driver = 'InputDriver'
icomm_name = 'DefaultComm'
class cis_interface.drivers.tests.test_ConnectionDriver.TestDefaultCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

args = 'test'
driver = 'OutputDriver'
ocomm_name = 'DefaultComm'
class cis_interface.drivers.tests.test_ConnectionDriver.TestIPCCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

args = 'test'
driver = 'InputDriver'
icomm_name = 'IPCComm'
class cis_interface.drivers.tests.test_ConnectionDriver.TestIPCCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

args = 'test'
driver = 'OutputDriver'
ocomm_name = 'IPCComm'
class cis_interface.drivers.tests.test_ConnectionDriver.TestRMQAsyncCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

args = 'test'
driver = 'InputDriver'
icomm_name = 'RMQAsyncComm'
class cis_interface.drivers.tests.test_ConnectionDriver.TestRMQAsyncCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

args = 'test'
driver = 'OutputDriver'
ocomm_name = 'RMQAsyncComm'
class cis_interface.drivers.tests.test_ConnectionDriver.TestRMQCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

args = 'test'
driver = 'InputDriver'
icomm_name = 'RMQComm'
class cis_interface.drivers.tests.test_ConnectionDriver.TestRMQCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

args = 'test'
driver = 'OutputDriver'
ocomm_name = 'RMQComm'
cis_interface.drivers.tests.test_ConnectionDriver.direct_translate(msg)[source]

Test translator that just returns passed message.

cis_interface.drivers.tests.test_ConnectionDriver.test_ConnectionDriverOnexit_errors()[source]

Test that errors are raised for invalid onexit.

cis_interface.drivers.tests.test_ConnectionDriver.test_ConnectionDriverTranslate_errors()[source]

Test that errors are raised for invalid translators.

cis_interface.drivers.tests.test_Driver module

class cis_interface.drivers.tests.test_Driver.TestDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_Driver.TestParam

Test runner for basic Driver class.

assert_after_stop()[source]

Assertions to make after stopping the driver instance.

assert_after_terminate()[source]

Assertions to make after terminating the driver instance.

assert_before_stop()[source]

Assertions to make before stopping the driver instance.

run_before_stop()[source]

Commands to run while the instance is running.

run_before_terminate()[source]

Commands to run while the instance is running, before terminate.

test_init_del()[source]

Test driver creation and deletion.

test_run_stop()[source]

Start the thread, then stop it.

test_run_terminate()[source]

Start the thread, then terminate it.

class cis_interface.drivers.tests.test_Driver.TestDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_Driver.TestParam

Test runner for basic Driver class without starting driver.

setup(*args, **kwargs)[source]

Create a driver instance without starting the driver.

test_attributes()[source]

Assert that the driver has all of the required attributes.

class cis_interface.drivers.tests.test_Driver.TestParam(*args, **kwargs)[source]

Bases: cis_interface.tests.CisTestClassInfo

Test parameters for basic Driver test class.

driver

Name of driver class.

Type:str
args

Driver arguments.

Type:object
namespace

PSI namespace to run drivers in.

Type:str
args = None
cls

Driver class.

Type:str
create_instance()[source]

Create a new instance object.

driver = 'Driver'
inst_args

Driver arguments.

Type:tuple
inst_kwargs

Keyword arguments for creating a class instance.

Type:dict
mod

Absolute path to module containing driver.

Type:str
name

Name of the test driver.

Type:str
remove_instance(inst)[source]

Remove an instance.

setup(*args, **kwargs)[source]

Create a driver instance and start the driver.

skip_start

True if driver shouldn’t be started. False otherwise.

Type:bool
working_dir

Working directory.

Type:str
cis_interface.drivers.tests.test_Driver.test_import_driver()[source]

Test creation of default driver.

cis_interface.drivers.tests.test_FileInputDriver module

class cis_interface.drivers.tests.test_FileInputDriver.TestAsciiFileCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver

icomm_name = 'AsciiFileComm'
class cis_interface.drivers.tests.test_FileInputDriver.TestAsciiMapCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver

icomm_name = 'AsciiMapComm'
class cis_interface.drivers.tests.test_FileInputDriver.TestAsciiTableCommArrayInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestAsciiTableCommInputDriver

testing_option_kws = {'as_array': True}
class cis_interface.drivers.tests.test_FileInputDriver.TestAsciiTableCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver

icomm_name = 'AsciiTableComm'
class cis_interface.drivers.tests.test_FileInputDriver.TestFileCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver

icomm_name = 'FileComm'
class cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputParam, cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

Test runner for FileInputDriver.

assert_after_terminate()[source]

Assertions to make after stopping the driver instance.

assert_before_stop()[source]

Assertions to make before stopping the driver instance.

run_before_terminate()[source]

Commands to run while the instance is running, before terminate.

test_send_recv()[source]

Disabled: Test sending/receiving small message.

test_send_recv_nolimit()[source]

Disabled: Test sending/receiving large message.

class cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputParam, cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriverNoStart

Test runner for FileInputDriver without start.

class cis_interface.drivers.tests.test_FileInputDriver.TestFileInputParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionParam

Test parameters for FileInputDriver.

Attributes (in addition to parent class’s):
filepath (str): Full path to test file.
contents_to_write

Contents that should be written to the file.

Type:str
icomm_name = 'FileComm'
send_comm_kwargs

Keyword arguments for send comm.

Type:dict
setup()[source]

Create a driver instance and start the driver.

teardown()[source]

Remove the instance, stoppping it.

testing_option_kws = {}
class cis_interface.drivers.tests.test_FileInputDriver.TestJSONFileCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver

icomm_name = 'JSONFileComm'
class cis_interface.drivers.tests.test_FileInputDriver.TestMatFileCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver

icomm_name = 'MatFileComm'
class cis_interface.drivers.tests.test_FileInputDriver.TestObjFileCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver

icomm_name = 'ObjFileComm'
class cis_interface.drivers.tests.test_FileInputDriver.TestPandasFileCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver

icomm_name = 'PandasFileComm'
class cis_interface.drivers.tests.test_FileInputDriver.TestPickleFileCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver

icomm_name = 'PickleFileComm'
class cis_interface.drivers.tests.test_FileInputDriver.TestPlyFileCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver

icomm_name = 'PlyFileComm'
class cis_interface.drivers.tests.test_FileInputDriver.TestYAMLFileCommInputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver

icomm_name = 'YAMLFileComm'

cis_interface.drivers.tests.test_FileOutputDriver module

class cis_interface.drivers.tests.test_FileOutputDriver.TestAsciiFileCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver

ocomm_name = 'AsciiFileComm'
class cis_interface.drivers.tests.test_FileOutputDriver.TestAsciiMapCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver

ocomm_name = 'AsciiMapComm'
class cis_interface.drivers.tests.test_FileOutputDriver.TestAsciiTableCommArrayOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestAsciiTableCommOutputDriver

testing_option_kws = {'as_array': True}
class cis_interface.drivers.tests.test_FileOutputDriver.TestAsciiTableCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver

ocomm_name = 'AsciiTableComm'
class cis_interface.drivers.tests.test_FileOutputDriver.TestFileCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver

ocomm_name = 'FileComm'
class cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputParam, cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

Test runner for FileOutputDriver.

assert_after_stop()[source]

Assertions to make after stopping the driver instance.

assert_after_terminate()[source]

Assertions to make after terminating the driver instance.

assert_before_stop()[source]

Assertions to make before stopping the driver instance.

contents_to_read

Contents that should be read to the file.

Type:str
run_before_terminate()[source]

Commands to run while the instance is running, before terminate.

send_file_contents()[source]

Send file contents to driver.

setup()[source]

Create a driver instance and start the driver.

teardown()[source]

Remove the instance, stoppping it.

test_send_recv()[source]

Disabled: Test sending/receiving small message.

test_send_recv_nolimit()[source]

Disabled: Test sending/receiving large message.

class cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputParam, cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriverNoStart

Test runner for FileOutputDriver without start.

inst_kwargs

Keyword arguments for creating a class instance.

Type:dict
class cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionParam

Test parameters for FileOutputDriver.

Attributes (in addition to parent class’s):
filepath (str): Full path to test file.
ocomm_name = 'FileComm'
recv_comm_kwargs

Keyword arguments for receive comm.

teardown()[source]

Remove the instance, stoppping it.

testing_option_kws = {}
class cis_interface.drivers.tests.test_FileOutputDriver.TestJSONFileCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver

ocomm_name = 'JSONFileComm'
class cis_interface.drivers.tests.test_FileOutputDriver.TestMatFileCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver

ocomm_name = 'MatFileComm'
class cis_interface.drivers.tests.test_FileOutputDriver.TestObjFileCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver

ocomm_name = 'ObjFileComm'
class cis_interface.drivers.tests.test_FileOutputDriver.TestPandasFileCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver

ocomm_name = 'PandasFileComm'
class cis_interface.drivers.tests.test_FileOutputDriver.TestPickleFileCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver

ocomm_name = 'PickleFileComm'
class cis_interface.drivers.tests.test_FileOutputDriver.TestPlyFileCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver

ocomm_name = 'PlyFileComm'
class cis_interface.drivers.tests.test_FileOutputDriver.TestYAMLFileCommOutputDriver(*args, **kwargs)

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver

ocomm_name = 'YAMLFileComm'

cis_interface.drivers.tests.test_GCCModelDriver module

class cis_interface.drivers.tests.test_GCCModelDriver.TestGCCModelDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_GCCModelDriver.TestGCCModelParam, cis_interface.drivers.tests.test_ModelDriver.TestModelDriver

Test runner for GCCModelDriver.

class cis_interface.drivers.tests.test_GCCModelDriver.TestGCCModelDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_GCCModelDriver.TestGCCModelParam, cis_interface.drivers.tests.test_ModelDriver.TestModelDriverNoStart

Test runner for GCCModelDriver without start.

teardown()[source]

Remove the instance, stoppping it.

class cis_interface.drivers.tests.test_GCCModelDriver.TestGCCModelDriverNoStart_std(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_GCCModelDriver.TestGCCModelDriverNoStart

Test runner for GCCModelDriver with std lib specified.

class cis_interface.drivers.tests.test_GCCModelDriver.TestGCCModelParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelParam

Test parameters for GCCModelDriver.

driver = 'GCCModelDriver'
cis_interface.drivers.tests.test_GCCModelDriver.test_GCCModelDriver_errors()[source]

Test GCCModelDriver errors.

cis_interface.drivers.tests.test_GCCModelDriver.test_GCCModelDriver_no_C_library()[source]

Test GCCModelDriver error when C library not installed.

cis_interface.drivers.tests.test_GCCModelDriver.test_build_shared()[source]

Test building libraries as shared.

cis_interface.drivers.tests.test_GCCModelDriver.test_get_flags()[source]

Test get_flags.

cis_interface.drivers.tests.test_GCCModelDriver.test_get_ipc_flags()[source]

Test get_ipc_flags.

cis_interface.drivers.tests.test_GCCModelDriver.test_get_zmq_flags()[source]

Test get_zmq_flags.

cis_interface.drivers.tests.test_LPyModelDriver module

class cis_interface.drivers.tests.test_LPyModelDriver.TestLPyModelDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_LPyModelDriver.TestLPyModelParam, cis_interface.drivers.tests.test_ModelDriver.TestModelDriver

Test runner for LPyModelDriver class.

class cis_interface.drivers.tests.test_LPyModelDriver.TestLPyModelDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_LPyModelDriver.TestLPyModelParam, cis_interface.drivers.tests.test_ModelDriver.TestModelDriverNoStart

Test runner for LPyModelDriver class without starting the driver.

class cis_interface.drivers.tests.test_LPyModelDriver.TestLPyModelParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelParam

Test parameters for LPyModelDriver class.

driver = 'LPyModelDriver'
cis_interface.drivers.tests.test_LPyModelDriver.test_LPyModelDriver_nolpy()[source]

Test LPyModelDriver error when LPy not installed.

cis_interface.drivers.tests.test_MakeModelDriver module

class cis_interface.drivers.tests.test_MakeModelDriver.TestMakeModelDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_MakeModelDriver.TestMakeModelParam, cis_interface.drivers.tests.test_ModelDriver.TestModelDriver

Test runner for MakeModelDriver.

class cis_interface.drivers.tests.test_MakeModelDriver.TestMakeModelDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_MakeModelDriver.TestMakeModelParam, cis_interface.drivers.tests.test_ModelDriver.TestModelDriverNoStart

Test runner for MakeModelDriver without start.

teardown()[source]

Remove the instance, stoppping it.

class cis_interface.drivers.tests.test_MakeModelDriver.TestMakeModelParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelParam

Test parameters for MakeModelDriver.

driver = 'MakeModelDriver'
cis_interface.drivers.tests.test_MakeModelDriver.test_MakeModelDriver_error_nofile()[source]

Test MakeModelDriver error for missing Makefile.

cis_interface.drivers.tests.test_MakeModelDriver.test_MakeModelDriver_error_notarget()[source]

Test MakeModelDriver error for invalid target.

cis_interface.drivers.tests.test_MakeModelDriver.test_MakeModelDriver_no_C_library()[source]

Test MakeModelDriver error when C library not installed.

cis_interface.drivers.tests.test_MatlabModelDriver module

class cis_interface.drivers.tests.test_MatlabModelDriver.TestMatlabModelDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_MatlabModelDriver.TestMatlabModelParam, cis_interface.drivers.tests.test_ModelDriver.TestModelDriver

Test runner for MatlabModelDriver.

class cis_interface.drivers.tests.test_MatlabModelDriver.TestMatlabModelDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_MatlabModelDriver.TestMatlabModelParam, cis_interface.drivers.tests.test_ModelDriver.TestModelDriverNoStart

Test runner for MatlabModelDriver.

class cis_interface.drivers.tests.test_MatlabModelDriver.TestMatlabModelParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelParam

Test parameters for MatlabModelDriver.

driver = 'MatlabModelDriver'
test_a()[source]

Dummy test to start matlab.

test_z()[source]

Dummy test to stop matlab.

cis_interface.drivers.tests.test_MatlabModelDriver.test_get_matlab_version()[source]

Test get_matlab_version.

cis_interface.drivers.tests.test_MatlabModelDriver.test_is_matlab_running()[source]

Test if there is Matlab engine running.

cis_interface.drivers.tests.test_MatlabModelDriver.test_locate_matlabroot()[source]

Test locate_matlabroot.

cis_interface.drivers.tests.test_MatlabModelDriver.test_matlab_exit()[source]

Test error when model contains ‘exit’ call.

cis_interface.drivers.tests.test_MatlabModelDriver.test_matlab_not_installed()[source]

Assert that errors are raised when Matlab is not installed.

cis_interface.drivers.tests.test_MatlabModelDriver.test_matlab_runner()[source]

Use get_runner to start a Matlab run.

cis_interface.drivers.tests.test_ModelDriver module

class cis_interface.drivers.tests.test_ModelDriver.TestModelDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelParam, cis_interface.drivers.tests.test_Driver.TestDriver

Test runner for basic ModelDriver class.

class cis_interface.drivers.tests.test_ModelDriver.TestModelDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelParam, cis_interface.drivers.tests.test_Driver.TestDriverNoStart

Test runner for basic ModelDriver class.

test_is_installed()[source]

Assert that the tested model driver is installed.

class cis_interface.drivers.tests.test_ModelDriver.TestModelDriver_strace(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelDriver

Test with strace.

inst_kwargs

Keyword arguments for creating a class instance.

Type:dict
class cis_interface.drivers.tests.test_ModelDriver.TestModelDriver_valgrind(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelDriver

Test with valgrind.

inst_kwargs

Keyword arguments for creating a class instance.

Type:dict
class cis_interface.drivers.tests.test_ModelDriver.TestModelParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_Driver.TestParam

Test parameters for basic ModelDriver class.

driver = 'ModelDriver'
cis_interface.drivers.tests.test_ModelDriver.test_error_valgrind_strace()[source]

Test error if both valgrind and strace set.

cis_interface.drivers.tests.test_ModelDriver.test_error_valgrind_strace_windows()[source]

Test error if strace or valgrind called on windows.

cis_interface.drivers.tests.test_PythonModelDriver module

class cis_interface.drivers.tests.test_PythonModelDriver.TestPythonModelDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_PythonModelDriver.TestPythonModelParam, cis_interface.drivers.tests.test_ModelDriver.TestModelDriver

Test runner for PythonModelDriver.

class cis_interface.drivers.tests.test_PythonModelDriver.TestPythonModelDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_PythonModelDriver.TestPythonModelParam, cis_interface.drivers.tests.test_ModelDriver.TestModelDriverNoStart

Test runner for PythonModelDriver without start.

class cis_interface.drivers.tests.test_PythonModelDriver.TestPythonModelParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelParam

Test parameters for PythonModelDriver.

driver = 'PythonModelDriver'

cis_interface.drivers.tests.test_RMQAsyncClientDriver module

class cis_interface.drivers.tests.test_RMQAsyncClientDriver.TestRMQAsyncClientDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQAsyncClientDriver.TestRMQAsyncClientParam, cis_interface.drivers.tests.test_ClientDriver.TestClientDriver

Test class for RMQAsyncClientDriver class.

class cis_interface.drivers.tests.test_RMQAsyncClientDriver.TestRMQAsyncClientDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQAsyncClientDriver.TestRMQAsyncClientParam, cis_interface.drivers.tests.test_ClientDriver.TestClientDriverNoStart

Test class for RMQAsyncClientDriver class without start.

class cis_interface.drivers.tests.test_RMQAsyncClientDriver.TestRMQAsyncClientParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ClientDriver.TestClientParam

Test parameters for RMQAsyncClientDriver class.

cis_interface.drivers.tests.test_RMQAsyncServerDriver module

class cis_interface.drivers.tests.test_RMQAsyncServerDriver.TestRMQAsyncServerDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQAsyncServerDriver.TestRMQAsyncServerParam, cis_interface.drivers.tests.test_ServerDriver.TestServerDriver

Test class for RMQAsyncServerDriver class.

class cis_interface.drivers.tests.test_RMQAsyncServerDriver.TestRMQAsyncServerDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQAsyncServerDriver.TestRMQAsyncServerParam, cis_interface.drivers.tests.test_ServerDriver.TestServerDriverNoStart

Test class for RMQAsyncServerDriver class without start.

class cis_interface.drivers.tests.test_RMQAsyncServerDriver.TestRMQAsyncServerParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ServerDriver.TestServerParam

Test parameters for RMQAsyncServerDriver class.

cis_interface.drivers.tests.test_RMQClientDriver module

class cis_interface.drivers.tests.test_RMQClientDriver.TestRMQClientDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQClientDriver.TestRMQClientParam, cis_interface.drivers.tests.test_ClientDriver.TestClientDriver

Test class for RMQClientDriver class.

class cis_interface.drivers.tests.test_RMQClientDriver.TestRMQClientDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQClientDriver.TestRMQClientParam, cis_interface.drivers.tests.test_ClientDriver.TestClientDriverNoStart

Test class for RMQClientDriver class without start.

class cis_interface.drivers.tests.test_RMQClientDriver.TestRMQClientParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ClientDriver.TestClientParam

Test parameters for RMQClientDriver class.

cis_interface.drivers.tests.test_RMQServerDriver module

class cis_interface.drivers.tests.test_RMQServerDriver.TestRMQServerDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQServerDriver.TestRMQServerParam, cis_interface.drivers.tests.test_ServerDriver.TestServerDriver

Test class for RMQServerDriver class.

class cis_interface.drivers.tests.test_RMQServerDriver.TestRMQServerDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQServerDriver.TestRMQServerParam, cis_interface.drivers.tests.test_ServerDriver.TestServerDriverNoStart

Test class for RMQServerDriver class without start.

class cis_interface.drivers.tests.test_RMQServerDriver.TestRMQServerParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ServerDriver.TestServerParam

Test parameters for RMQServerDriver class.

cis_interface.drivers.tests.test_ServerDriver module

class cis_interface.drivers.tests.test_ServerDriver.TestServerDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ServerDriver.TestServerParam, cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

Test class for ServerDriver class.

setup(*args, **kwargs)[source]

Wait for drivers to start.

test_client_count()[source]

Test to ensure client count is correct.

test_send_recv(msg_send=None)[source]

Test routing of a short message between client and server.

test_send_recv_nolimit()[source]

Test routing of a large message between client and server.

class cis_interface.drivers.tests.test_ServerDriver.TestServerDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ServerDriver.TestServerParam, cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriverNoStart

Test class for ServerDriver class without start.

test_error_attributes()[source]

Test error raised when trying to access attributes set on recv.

class cis_interface.drivers.tests.test_ServerDriver.TestServerParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionParam

Test parameters for ServerDriver class.

create_client(comm_address=None)[source]

Create a new ClientDriver instance.

inst_kwargs

Keyword arguments for tested class.

Type:dict
recv_comm_kwargs

Keyword arguments for recv comm.

Type:dict
send_comm_kwargs

Keyword arguments for send comm.

Type:dict
setup(*args, **kwargs)[source]

Recover new server message on start-up.

teardown()[source]

Recover end server message on teardown.

cis_interface.drivers.tests.test_ServerResponseDriver module

class cis_interface.drivers.tests.test_ServerResponseDriver.TestServerResponseDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ServerResponseDriver.TestServerResponseParam, cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriver

Test class for ServerResponseDriver class.

test_send_recv()[source]

Test sending/receiving small message.

test_send_recv_nolimit()[source]

Test sending/receiving large message.

class cis_interface.drivers.tests.test_ServerResponseDriver.TestServerResponseDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ServerResponseDriver.TestServerResponseParam, cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionDriverNoStart

Test class for ServerResponseDriver class without start.

get_fresh_name()[source]

Get a fresh name for a new instance that won’t overlap with the base.

class cis_interface.drivers.tests.test_ServerResponseDriver.TestServerResponseParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ConnectionDriver.TestConnectionParam

Test parameters for ServerResponseDriver class.

inst_args

Driver arguments.

Type:tuple
inst_kwargs

Keyword arguments for tested class.

Type:dict

Module contents

Tests for drivers sub-package.