tests package

Submodules

tests.test_Doptim module

Orthogonal Array package test functions

class tests.test_Doptim.TestDoptimize(methodName='runTest')

Bases: TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

test_Doptimize_nonzero_strength(**kwargs)
test_Doptimize_selectDn()
test_array2Dtable()
test_calcScore()
test_custom_optim(**kwargs)
test_filterPareto()
test_generateDpage(**kwargs)
test_generateDscatter(**kwargs)
test_optimDeffPython(**kwargs)
tests.test_Doptim.only_python3(function)

tests.test_conference module

Pieter Eendebak <pieter.eendebak@gmail.com>

class tests.test_conference.TestConferenceStatistics(methodName='runTest')

Bases: TestCase

test_conference_model_statistics(**kwargs)
test_conference_projection_statistics()
test_leftDivide()
test_momentMatrix()
class tests.test_conference.TestFvalues(methodName='runTest')

Bases: TestCase

test_FvaluesConference()
test_FvaluesConference_odd_runs()
class tests.test_conference.TestJcharacteristics(methodName='runTest')

Bases: TestCase

test_Jcharacteristics()
tests.test_conference.only_python3(function)

Decorator to only execute a test function in Python 3

tests.test_cpplibrary module

Orthogonal Array package test functions

class tests.test_cpplibrary.TestArrayFiles(methodName='runTest')

Bases: TestCase

test_write_latex_format()

Bases: TestCase

test_array_class_functions()
test_is_ortogonal_array()
test_selectFirstColumns()
test_strength()
class tests.test_cpplibrary.TestArraydata_t(methodName='runTest')

Bases: TestCase

test_arraydata_t_oaindex()
test_factor_levels()
class tests.test_cpplibrary.TestCompareMethods(methodName='runTest')

Bases: TestCase

test_compareJ54()
test_compareLMC()
class tests.test_cpplibrary.TestConferenceDesigns(methodName='runTest')

Bases: TestCase

test_conf2dsd()
test_double_conference_foldover_permutation()
test_isConferenceFoldover()
class tests.test_cpplibrary.TestCppLibrary(methodName='runTest')

Bases: TestCase

distance_distribution()
setUp()

Hook method for setting up the test fixture before exercising it.

test_Defficiencies()
test_PICsequence_length()
test_array2eigenModelMatrixMixed()
test_array_transformation_t()
test_arraylink2arraydata()
test_arrayrankInfo()
test_conference_generation()
test_distance_distribution_mixed()
test_distance_distribution_mixed_2()
test_distance_distribution_shape()
test_distance_distribution_sum()
test_exampleArray()
test_exception_handling()
test_get_time_ms()
test_mvalue_t()
test_mycheck_handler()
test_print_column()
test_projectionDOFvalues()
test_projection_efficiencies()
test_rankStructure()
test_root_form()
test_runExtend_increasing_factor_levels()

We test the usage of an increasing factor levels raises are warning, but nevertheless gives the correct results

test_splits()
class tests.test_cpplibrary.TestJcharacteristics(methodName='runTest')

Bases: TestCase

test_Jcharacteristics()
test_jstruct_conference()
class tests.test_cpplibrary.TestMathTools(methodName='runTest')

Bases: TestCase

test_krawtchouk()
class tests.test_cpplibrary.TestMinimalFormCheck(methodName='runTest')

Bases: TestCase

test_LMCcheck()
test_LMCcheckOriginal()
class tests.test_cpplibrary.TestModelmatrix(methodName='runTest')

Bases: TestCase

test_array2eigenModelMatrixMixed()
test_modelmatrix()
test_modelmatrix_main_effects()
test_modelmatrix_verbosity()
class tests.test_cpplibrary.TestReductions(methodName='runTest')

Bases: TestCase

test_DOP()
test_LMC()
tests.test_cpplibrary.is_sorted(l)

tests.test_cpplibrary_gwlp module

class tests.test_cpplibrary_gwlp.TestGWLP(methodName='runTest')

Bases: TestCase

test_gwlp()
test_gwlp_mixed()
test_gwlp_mixed2()
test_regression_gwlp_non_mixed()

tests.test_cpplibrary_macwilliams module

class tests.test_cpplibrary_macwilliams.TestMacWilliams(methodName='runTest')

Bases: TestCase

test_macwilliams_transform()

tests.test_nauty module

class tests.test_nauty.TestGWLP(methodName='runTest')

Bases: TestCase

test_reduceNauty_directed_graphs()
tests.test_nauty.inverse_permutation(perm)
tests.test_nauty.reduce(graph, colors)

tests.test_oapackage module

Orthogonal Array package test functions

class tests.test_oapackage.TestMisc(methodName='runTest')

Bases: TestCase

test_exampleArray()
test_oa2graph()
test_reduceGraphNauty()
test_scanf()
class tests.test_oapackage.TestOAfiles(methodName='runTest')

Bases: TestCase

Test functionality related to orthogonal array files

test_checkArrayFile()
test_finddirectories()
test_findfiles()
test_findfilesR()
test_misc_file_operations()
test_nArrayFile()
test_selectArrays()
test_write_arrayfile_with_comment()
class tests.test_oapackage.TestOAhelper(methodName='runTest')

Bases: TestCase

Test functionality contained in oahelper module

setUp()

Hook method for setting up the test fixture before exercising it.

test_argsort()
test_array2html()
test_array2latex()
test_bounds()
test_checkFiles()
test_checkFilesOA()
test_choose()
test_create_pareto_element()
test_create_pareto_element_invalid_type()
test_deprecated()
test_designStandardError()
test_fac()
test_floatformat()
test_formatC()
test_gwlp2str()
test_helmert_contrasts()
test_joinArrayLists()
test_parseProcessingTime()
test_plot2Dline()
test_runExtend()
test_safemin_safemax()
test_sortcols()
test_sortrows()
test_testHtml()
class tests.test_oapackage.TestOAhinterface(methodName='runTest')

Bases: TestCase

Test functionality in C++ to Python interface

class tests.test_oapackage.TestParetoFunctionality

Bases: object

test_selectParetoArrays()
tests.test_oapackage.autodoctest()

Test the module using autodoc .. rubric:: Example

>>> import oapackage
>>> arrayclass=oapackage.arraydata_t(2, 40, 0, 7)
>>> print(arrayclass)
arrayclass: N 40, k 7, strength 0, s {2,2,2,2,2,2,2}, order 0
tests.test_oapackage.miscunittest(verbose=1)

Perform some unit testing, return True if succesfull

tests.test_oapackage.test_extendSingleArray()
tests.test_oapackage.test_nauty(verbose=0)
tests.test_oapackage.test_numpy_interface(verbose=0)

tests.test_oapackage_graphtools module

Orthogonal Array package test functions

class tests.test_oapackage_graphtools.TestGraphtools(methodName='runTest')

Bases: TestCase

Test functionality related to orthogonal array files

test_selectIsomorphismClasses()