materials.variation_with_state_test module

Unit tests for variation_woth_state.

class materials.variation_with_state_test.TestBuildFromYaml(methodName='runTest')[source]

Bases: unittest.case.TestCase

Unit tests for build_from_yaml.

test_build_eqn_1d()[source]

Test build_from_yaml with a single varaible equation.

test_build_table_1d()[source]

Test build_from_yaml with a 1-d lookup table.

test_build_table_2d()[source]

Test build_from_yaml with a 2-d lookup table.

class materials.variation_with_state_test.TestCreatInterpArrays(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests for _create_interp_arrays_from_yaml_table.

test_2d()[source]

Test with a 2-d lookup table.

class materials.variation_with_state_test.TestVariationWithStateEquation(methodName='runTest')[source]

Bases: unittest.case.TestCase

Unit tests for VariationWithStateEquation.

test_import_os()[source]

Security: Make sure one cannot import os in the expression.

test_is_state_in_domain_1d()[source]

Test checking if a state is in the valid domain.

test_is_state_in_domain_2d()[source]

Test checking if a state is in the valid domain, with two state variables.

test_query_1d()[source]

Test querying an expression of one variable.

test_query_2d()[source]

Test querying an expression of two variables.

class materials.variation_with_state_test.TestVariationWithStateTable(methodName='runTest')[source]

Bases: unittest.case.TestCase

Unit tests for VariationWithStateTable.

test_domain_1d()[source]

Test get_state_domain on a 1-d lookup table.

test_domain_2d()[source]

Test get_state_domain on a 2-d lookup table.

test_query_1d()[source]

Test queries on a 1-d lookup table.

test_query_2d()[source]

Test queries on a 2-d lookup table.

test_str()[source]

Unit test for __str__.