materials.property_test module

Unit tests for Property.

class materials.property_test.TestProperty(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests for “simple” Property.

test_init()[source]

Test constructor.

test_str()[source]

Test __str__.

class materials.property_test.TestStateDependentProperty(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests for StateDependentProperty class.

test_getitem()[source]

Unit test for __getitem__

test_init_2d()[source]

Test init with a 2-d lookup table.

test_query_1d()[source]

Test query_value with a 1-d lookup table.

test_query_1d_eqn()[source]

Test query_value with a single varaible equation.

test_query_2d()[source]

Test query_value with a 2-d lookup table.

test_str()[source]

Unit test for __str__