cis_interface.drivers.tests package

Submodules

cis_interface.drivers.tests.test_AsciiFileInputDriver module

class cis_interface.drivers.tests.test_AsciiFileInputDriver.TestAsciiFileInputDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_AsciiFileInputDriver.TestAsciiFileInputParam, cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriver

Test runner for AsciiFileInputDriver.

Attributes (in addition to the parent class):
assert_after_terminate()[source]

Assertions to make after stopping the driver instance.

assert_before_stop()[source]

Assertions to make before stopping the driver instance.

class cis_interface.drivers.tests.test_AsciiFileInputDriver.TestAsciiFileInputDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_AsciiFileInputDriver.TestAsciiFileInputParam, cis_interface.drivers.tests.test_FileInputDriver.TestFileInputDriverNoStart

Test runner for AsciiFileInputDriver without start.

Attributes (in addition to the parent class):
class cis_interface.drivers.tests.test_AsciiFileInputDriver.TestAsciiFileInputParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputParam

Test parameters for AsciiFileInputDriver.

Attributes (in addition to the parent class):

cis_interface.drivers.tests.test_AsciiFileOutputDriver module

class cis_interface.drivers.tests.test_AsciiFileOutputDriver.TestAsciiFileOutputDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_AsciiFileOutputDriver.TestAsciiFileOutputParam, cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriver

Test runner for AsciiFileOutputDriver.

Attributes (in addition to parent class’s):
assert_after_terminate()[source]

Assertions to make after stopping the driver instance.

setup()[source]

Create a driver instance and start the driver.

class cis_interface.drivers.tests.test_AsciiFileOutputDriver.TestAsciiFileOutputDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_AsciiFileOutputDriver.TestAsciiFileOutputParam, cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputDriverNoStart

Test runner for AsciiFileOutputDriver without start.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_AsciiFileOutputDriver.TestAsciiFileOutputParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputParam

Test parameters for AsciiFileOutputDriver.

Attributes (in addition to parent class’s):

cis_interface.drivers.tests.test_AsciiTableInputDriver module

class cis_interface.drivers.tests.test_AsciiTableInputDriver.TestAsciiTableInputDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_AsciiTableInputDriver.TestAsciiTableInputParam, cis_interface.drivers.tests.test_AsciiFileInputDriver.TestAsciiFileInputDriver

Test runner for AsciiTableInputDriver.

Attributes (in addition to parent class’s):
assert_before_stop()[source]

Assertions to make before stopping the driver instance.

class cis_interface.drivers.tests.test_AsciiTableInputDriver.TestAsciiTableInputDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_AsciiTableInputDriver.TestAsciiTableInputParam, cis_interface.drivers.tests.test_AsciiFileInputDriver.TestAsciiFileInputDriverNoStart

Test runner for AsciiTableInputDriver.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_AsciiTableInputDriver.TestAsciiTableInputDriver_Array(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_AsciiTableInputDriver.TestAsciiTableInputParam, cis_interface.drivers.tests.test_AsciiFileInputDriver.TestAsciiFileInputDriver

Test runner for AsciiTableInputDriver with array input.

Attributes (in addition to parent class’s):
assert_before_stop()[source]

Assertions to make before stopping the driver instance.

class cis_interface.drivers.tests.test_AsciiTableInputDriver.TestAsciiTableInputParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_AsciiFileInputDriver.TestAsciiFileInputParam

Test parameters for AsciiTableInputDriver.

Attributes (in addition to parent class’s):

cis_interface.drivers.tests.test_AsciiTableOutputDriver module

class cis_interface.drivers.tests.test_AsciiTableOutputDriver.TestAsciiTableOutputDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_AsciiTableOutputDriver.TestAsciiTableOutputParam, cis_interface.drivers.tests.test_AsciiFileOutputDriver.TestAsciiFileOutputDriver

Test runner for AsciiTableOutputDriver.

Attributes (in addition to parent class’s):
setup()[source]

Create a driver instance and start the driver.

class cis_interface.drivers.tests.test_AsciiTableOutputDriver.TestAsciiTableOutputDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_AsciiTableOutputDriver.TestAsciiTableOutputParam, cis_interface.drivers.tests.test_AsciiFileOutputDriver.TestAsciiFileOutputDriverNoStart

Test runner for AsciiTableOutputDriver without start.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_AsciiTableOutputDriver.TestAsciiTableOutputDriver_Array(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_AsciiTableOutputDriver.TestAsciiTableOutputParam, cis_interface.drivers.tests.test_AsciiFileOutputDriver.TestAsciiFileOutputDriver

Test runner for AsciiTableOutputDriver with array input.

setup()[source]

Create a driver instance and start the driver.

class cis_interface.drivers.tests.test_AsciiTableOutputDriver.TestAsciiTableOutputParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_AsciiFileOutputDriver.TestAsciiFileOutputParam

Test parameters for AsciiTableOutputDriver.

Attributes (in addition to parent class’s):

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.

Attributes (in addition to parameter 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.

Attributes (in addition to parent class):
setup()[source]

Create a driver instance without starting the driver.

test_attributes()[source]

Assert that the driver has all of the required attributes.

test_prints()[source]

Test logging at various levels.

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

Bases: unittest.case.TestCase

Test parameters for basic Driver test class.

driver

str – The driver class.

args

object – Driver arguments.

namespace

str – PSI namespace to run drivers in.

attr_list

list – List of attributes that should be checked for after initialization.

inst_kwargs

dict – Keyword arguments for the driver.

nprev_queues

int – The number of IPC queues that exist before the driver instance is created.

create_instance()[source]

Create a new instance object.

instance

object – Instance of the test driver.

name

str – Name of the test driver.

remove_instance(inst)[source]

Remove an instance.

setUp(*args, **kwargs)[source]
setup(skip_start=False)[source]

Create a driver instance and start the driver.

shortDescription()[source]

Prefix first line of doc string with driver.

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

Remove the instance, stoppping it.

workingDir

str – Working directory.

cis_interface.drivers.tests.test_FileInputDriver module

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

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputParam, cis_interface.drivers.tests.test_IODriver.TestIODriver

Test runner for FileInputDriver.

Attributes (in addition to parent class’s):
assert_after_terminate()[source]

Assertions to make after stopping the driver instance.

assert_before_stop()[source]

Assertions to make before stopping the driver instance.

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_FileInputDriver.TestFileInputDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_FileInputDriver.TestFileInputParam, cis_interface.drivers.tests.test_IODriver.TestIODriverNoStart

Test runner for FileInputDriver without start.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_FileInputDriver.TestFileInputParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_IODriver.TestIOParam

Test parameters for FileInputDriver.

Attributes (in addition to parent class’s):
filepath (str): Full path to test file.
setup()[source]

Create a driver instance and start the driver.

teardown()[source]

Remove the instance, stoppping it.

cis_interface.drivers.tests.test_FileOutputDriver module

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

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputParam, cis_interface.drivers.tests.test_IODriver.TestIODriver

Test runner for FileOutputDriver.

Attributes (in addition to parent class’s):
assert_after_stop()[source]

Assertions to make after stopping the driver instance.

assert_after_terminate()[source]

Assertions to make after terminating the driver instance.

run_before_terminate()[source]

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

setup()[source]

Create a driver instance and start the driver.

teardown()[source]

Remove the instance, stoppping it.

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_FileOutputDriver.TestFileOutputDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputParam, cis_interface.drivers.tests.test_IODriver.TestIODriverNoStart

Test runner for FileOutputDriver without start.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_FileOutputDriver.TestFileOutputParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_IODriver.TestIOParam

Test parameters for FileOutputDriver.

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

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.

Attributes (in addition to parent class’s):
teardown()[source]

Remove the instance, stoppping it.

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.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_GCCModelDriver.TestGCCModelParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelParam

Test parameters for GCCModelDriver.

Attributes (in addition to parent class’s):

cis_interface.drivers.tests.test_IODriver module

class cis_interface.drivers.tests.test_IODriver.IOInfo[source]

Bases: object

Simple class for useful IO attributes.

fmt_str

str – Format string for lines of a table.

file_rows

list – List of mock table rows.

data_dict

dict – Mock dictionary of arrays.

file_array

np.ndarray – Numpy structure array of mock file contents.

file_bytes

str – Raw bytes of array of mock file contents.

file_contents

str – Complete contents of mock file.

file_lines

list – Lines in a mock file.

maxMsgSize

int – Maximum message size.

msg_long

str – Small test message for sending.

msg_short

str – Small test message for sending.

pickled_data

str – Pickled mock data dictionary.

write_pickle(fname)[source]

Write the pickled table out to a file.

Parameters:fname (str) – Full path to the file that the pickle should be written to.
write_table(fname)[source]

Write the table out to a file.

Parameters:fname (str) – Full path to the file that the table should be written to.
class cis_interface.drivers.tests.test_IODriver.TestIODriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_IODriver.TestIOParam, cis_interface.drivers.tests.test_Driver.TestDriver

Test class for the IODriver class.

Attributes (in addition to parent class’s):
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_terminate()[source]

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

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

Ensure that there are not messages in the queue at exit.

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_IODriver.TestIODriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_IODriver.TestIOParam, cis_interface.drivers.tests.test_Driver.TestDriverNoStart

Test class for the IODriver class without start.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_IODriver.TestIOParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_Driver.TestParam, cis_interface.drivers.tests.test_IODriver.IOInfo

Test parameters for the IODriver class.

Attributes (in addition to parent class’s):

cis_interface.drivers.tests.test_MatInputDriver module

class cis_interface.drivers.tests.test_MatInputDriver.TestMatInputDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_IODriver.TestIODriver

Test runner for MatInputDriver.

Attributes (in addition to parent class’s):
filepath (str): Full path to test file.
assert_after_terminate()[source]

Assertions to make after stopping the driver instance.

assert_before_stop()[source]

Assertions to make before stopping the driver instance.

setup()[source]

Create a driver instance and start the driver.

teardown()[source]

Remove the instance, stoppping it.

test_send_recv()[source]

Test sending/receiving small message.

test_send_recv_nolimit()[source]

Test sending/receiving large message.

cis_interface.drivers.tests.test_MatOutputDriver module

class cis_interface.drivers.tests.test_MatOutputDriver.TestMatOutputDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_MatOutputDriver.TestMatOutputParam, cis_interface.drivers.tests.test_IODriver.TestIODriver

Test runner for MatOutputDriver.

Attributes (in addition to parent class’s):
assert_after_stop()[source]

Assertions to make after stopping the driver instance.

assert_after_terminate()[source]

Assertions to make after stopping the driver instance.

run_before_terminate()[source]

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

setup()[source]

Create a driver instance and start the driver.

teardown()[source]

Remove the instance, stoppping it.

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_MatOutputDriver.TestMatOutputDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_MatOutputDriver.TestMatOutputParam, cis_interface.drivers.tests.test_IODriver.TestIODriverNoStart

Test runner for MatOutputDriver.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_MatOutputDriver.TestMatOutputParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_IODriver.TestIOParam

Test parameters for MatOutputDriver.

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

cis_interface.drivers.tests.test_MatlabModelDriver module

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

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelDriver, cis_interface.drivers.tests.test_ModelDriver.TestModelDriverNoStart

Test runner for MatlabModelDriver.

Attributes (in addition to parent class’s):
test_a()[source]

Dummy test to start matlab.

test_z()[source]

Dummy test to stop matlab.

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.

Attributes (in addition to parent class’s):
run_before_stop()[source]

Commands to run while the instance is running.

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.

Attributes (in addition to parent class’s):
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.

Attributes (in addition to parent class’s):

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.

Attributes (in addition to parent class’s):
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.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_PythonModelDriver.TestPythonModelParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_ModelDriver.TestModelParam

Test parameters for PythonModelDriver.

Attributes (in addition to parent class’s):

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

Test class for RMQClientDriver class.

Attributes (in addition to parent class’s):
create_server_rmq()[source]

Create a new RMQServerDriver instance.

setup()[source]

Recover new client message on start-up.

teardown()[source]

Recover end client message on teardown.

test_msg()[source]

Test routing of a message through the IPC & RMQ queues.

test_purge()[source]

Test purge of queue.

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

Bases: cis_interface.drivers.tests.test_RMQClientDriver.TestRMQClientParam, cis_interface.drivers.tests.test_RMQDriver.TestRMQDriverNoStart

Test class for RMQClientDriver class without start.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_RMQClientDriver.TestRMQClientParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQDriver.TestRMQParam, cis_interface.drivers.tests.test_IODriver.IOInfo

Test parameters for RMQClientDriver class.

Attributes (in addition to parent class’s):

cis_interface.drivers.tests.test_RMQDriver module

class cis_interface.drivers.tests.test_RMQDriver.TestRMQDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQDriver.TestRMQParam, cis_interface.drivers.tests.test_Driver.TestDriver

Test class for RMQDriver class.

Attributes (in addition to parent class’s):
assert_after_terminate()[source]

Make sure the connection is closed.

teardown()[source]

Make sure the queue is empty before closing the driver.

test_purge()[source]

Test purge of queue.

class cis_interface.drivers.tests.test_RMQDriver.TestRMQDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQDriver.TestRMQParam, cis_interface.drivers.tests.test_Driver.TestDriverNoStart

Test class for RMQDriver class without start.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_RMQDriver.TestRMQParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_Driver.TestParam, cis_interface.drivers.tests.test_IODriver.IOInfo

Test parameters for RMQDriver class.

Attributes (in addition to parent class’s):

cis_interface.drivers.tests.test_RMQInputDriver module

class cis_interface.drivers.tests.test_RMQInputDriver.TestRMQInputDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQInputDriver.TestRMQInputParam, cis_interface.drivers.tests.test_RMQDriver.TestRMQDriver

Test runner for RMQInputDriver.

Attributes (in addition to parent class’s):
test_RMQ_recv()[source]

Receive a small message from AMQP server.

test_RMQ_recv_nolimit()[source]

Receive a large message from AMQP server.

test_early_close()[source]

Test early deletion of message queue.

test_purge()[source]

Test purge of queue.

class cis_interface.drivers.tests.test_RMQInputDriver.TestRMQInputDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQInputDriver.TestRMQInputParam, cis_interface.drivers.tests.test_RMQDriver.TestRMQDriverNoStart

Test runner for RMQInputDriver without start.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_RMQInputDriver.TestRMQInputParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQDriver.TestRMQParam, cis_interface.drivers.tests.test_IODriver.IOInfo

Test parameters for RMQInputDriver.

Attributes (in addition to parent class’s):

cis_interface.drivers.tests.test_RMQOutputDriver module

class cis_interface.drivers.tests.test_RMQOutputDriver.TestRMQOutputDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQOutputDriver.TestRMQOutputParam, cis_interface.drivers.tests.test_RMQDriver.TestRMQDriver

Test runner for RMQOutputDriver.

Attributes (in addition to parent class’s):
create_in_rmq()[source]

Create a new RMQInputDriver instance.

setup()[source]

Create a driver instance and start the driver.

teardown()[source]

Remove the instance, stoppping it.

test_RMQ_send()[source]

Send a short message to the AMQP server.

test_RMQ_send_nolimit()[source]

Send a long message to the AMQP server.

test_early_close()[source]

Test early deletion of message queue.

test_purge()[source]

Test purge of queue.

class cis_interface.drivers.tests.test_RMQOutputDriver.TestRMQOutputDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQOutputDriver.TestRMQOutputParam, cis_interface.drivers.tests.test_RMQDriver.TestRMQDriverNoStart

Test runner for RMQOutputDriver without start.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_RMQOutputDriver.TestRMQOutputParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQDriver.TestRMQParam

Test parameters for RMQOutputDriver.

Attributes (in addition to parent class’s):

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

Test class for RMQServerDriver class.

Attributes (in addition to parent class’s):
create_in_rmq()[source]

Create a blocking connection, channel, and queue for testing.

destroy_in_rmq()[source]

Remove blocking connection, channel, and queue.

setup()[source]

Create a driver instance and start the driver.

teardown()[source]

Remove the instance, stoppping it.

temp_basic_get()[source]

Do basic_get from the temporary queue.

test_client_count()[source]

Test to ensure client count is correct.

test_msg()[source]

Test routing of a message through the IPC & RMQ queues.

test_purge()[source]

Test purge of queue.

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

Bases: cis_interface.drivers.tests.test_RMQServerDriver.TestRMQServerParam, cis_interface.drivers.tests.test_RMQDriver.TestRMQDriverNoStart

Test class for RMQServerDriver class without start.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_RMQServerDriver.TestRMQServerParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RMQDriver.TestRMQParam, cis_interface.drivers.tests.test_IODriver.IOInfo

Test parameters for RMQServerDriver class.

Attributes (in addition to parent class’s):

cis_interface.drivers.tests.test_RPCDriver module

class cis_interface.drivers.tests.test_RPCDriver.TestRPCDriver(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RPCDriver.TestRPCParam, cis_interface.drivers.tests.test_Driver.TestDriver, cis_interface.drivers.tests.test_IODriver.IOInfo

Test class for RPCDriver class.

Attributes (in addition to parent class’s):
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_terminate()[source]

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

test_send_recv()[source]

Test sending/receiving small message.

test_send_recv_nolimit()[source]

Test sending/receiving large message.

test_send_recv_wait()[source]

Test sending/receiving small message with wait.

test_send_recv_wait_nolimit()[source]

Test sending/receiving large message with wait.

class cis_interface.drivers.tests.test_RPCDriver.TestRPCDriverNoStart(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_RPCDriver.TestRPCParam, cis_interface.drivers.tests.test_Driver.TestDriverNoStart, cis_interface.drivers.tests.test_IODriver.IOInfo

Test class for RPCDriver class without start.

Attributes (in addition to parent class’s):
class cis_interface.drivers.tests.test_RPCDriver.TestRPCParam(*args, **kwargs)[source]

Bases: cis_interface.drivers.tests.test_Driver.TestParam, cis_interface.drivers.tests.test_IODriver.IOInfo

Test parameters for RPCDriver class.

Attributes (in addition to parent class’s):

Module contents

Tests for drivers sub-package.