cis_interface.examples.tests package

Submodules

cis_interface.examples.tests.test_SaM module

class cis_interface.examples.tests.test_SaM.TestExampleSaM(*args, **kwargs)[source]

Bases: cis_interface.examples.tests.TestExample

Test the SaM example.

check_result()[source]

Assert that contents of input/output files are identical.

output_file

Output file.

result

Result that should be found in output files.

cis_interface.examples.tests.test_ascii_io module

class cis_interface.examples.tests.test_ascii_io.TestExampleAsciiIO(*args, **kwargs)[source]

Bases: cis_interface.examples.tests.TestExample

Test the AsciiIO example.

check_array()[source]

Assert that contents of input/output ascii arrays are identical.

check_file()[source]

Assert that contents of input/output ascii files are identical.

check_result()[source]

Ensure output files are identical to input files.

check_table()[source]

Assert that contents of input/output ascii tables are identical.

input_array

Input array.

input_file

Input file.

input_table

Input table.

output_array

Output array.

output_file

Output file.

output_table

Output table.

cis_interface.examples.tests.test_hello module

class cis_interface.examples.tests.test_hello.TestExampleHello(*args, **kwargs)[source]

Bases: cis_interface.examples.tests.TestExample

Test the Hello example.

check_result()[source]

Assert that contents of input/output files are identical.

input_file

Input file.

output_file

Output file.

cis_interface.examples.tests.test_rpcFib module

class cis_interface.examples.tests.test_rpcFib.TestExampleRpcFib(*args, **kwargs)[source]

Bases: cis_interface.examples.tests.TestExample

Test the rpcFib example.

check_result()[source]

Assert that contents of input/output files are identical.

client1_output_file

Output file.

result

Result that should be found in output files.

Module contents

class cis_interface.examples.tests.TestExample(*args, **kwargs)[source]

Bases: unittest.case.TestCase

Base class for running examples.

check_result()[source]

This should be overridden with checks for the result.

run_example()[source]

This runs an example in the correct language.

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

Redirect unittest to nose style setup.

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

Setup to perform before test.

shortDescription()[source]

Prefix first line of doc string with driver.

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

Redirect unittest to nose style teardown.

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

Teardown to perform after test.

test_all()[source]

Test the version of the example that uses all languages.

test_c()[source]

Test the C version of the example.

test_cpp()[source]

Test the C++ version of the example.

test_matlab()[source]

Test the Matlab version of the example.

test_python()[source]

Test the Python version of the example.

yaml

str – The full path to the yaml file for this example.

yamldir

str – Full path to the directory containing the yaml file.