armi.materials.tests.test__init__ module

Tests the __init__.py file since it has rather unique behavior.

armi.materials.tests.test__init__.betterSubClassCheck(item, superClass)[source]
class armi.materials.tests.test__init__.TestMaterialsInit(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_canAccessClassesFromPackage()[source]
test_packageClassesEqualModuleClasses()[source]
class armi.materials.tests.test__init__.FakeMaterial(yamlPath=None, updateMassFracs=True)[source]

Bases: Material

class armi.materials.tests.test__init__.PluginMaterialA[source]

Bases: ArmiPlugin

static setMaterialBaseClass(materialType)[source]

Set material base class.

class armi.materials.tests.test__init__.TestMaterialBaseClassHook(methodName='runTest')[source]

Bases: TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_materialBaseClassHook()[source]

Verify materials are created with the right base class.

class armi.materials.tests.test__init__.TestYamlMaterial(methodName='runTest')[source]

Bases: TestCase

Test a custom YAML material.

Test Case: Test a custom YAML material is able to be created, loaded with a reactor, and loaded from a database. T_ARMI_MAT_CUSTOM1
signature: TestYamlMaterial
requirements: R_ARMI_MAT_CUSTOM

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_materialClass()[source]

Verify the directory HT9 is being used not the HT9 class in ARMI.

test_loadReactor()[source]

Verifies that a reactor can be loaded from case settings with custom YAML materials.

test_loadDB()[source]

Verifies that a reactor can be loaded from database with custom YAML materials.

class armi.materials.tests.test__init__.TestPythonMaterial(methodName='runTest')[source]

Bases: TestCase

Test a custom Python material.

Test Case: Test a custom Python material is able to be created, loaded with a reactor, and loaded from a database. T_ARMI_MAT_CUSTOM0
signature: TestPythonMaterial
requirements: R_ARMI_MAT_CUSTOM

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_materialClass()[source]

Verify the custom UZr material can load and is what we expect.

test_loadReactor()[source]

Verifies that a reactor can be loaded from case settings with custom Python materials.

test_loadDB()[source]

Verifies that a reactor can be loaded from database with custom Python materials.