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__.Materials__init__Tests(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__.TestMaterial(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__.YamlMaterialTests(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_materialClass()[source]
test_loadReactor()[source]
test_loadDB()[source]