armi.nucDirectory.tests.test_elements module

Tests for elements.

class armi.nucDirectory.tests.test_elements.TestElement(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_elements_elementBulkProperties()[source]
test_element_elementByNameReturnsElement()[source]

Get elements by name.

Test Case: Get elements by name. T_ARMI_ND_ELEMENTS0
signature: test_element_elementByNameReturnsElement
requirements: R_ARMI_ND_ELEMENTS
test_element_elementByZReturnsElement()[source]

Get elements by Z.

Test Case: Get elements by Z. T_ARMI_ND_ELEMENTS1
signature: test_element_elementByZReturnsElement
requirements: R_ARMI_ND_ELEMENTS
test_element_elementBySymbolReturnsElement()[source]

Get elements by symbol.

Test Case: Get elements by symbol. T_ARMI_ND_ELEMENTS2
signature: test_element_elementBySymbolReturnsElement
requirements: R_ARMI_ND_ELEMENTS
test_element_addExistingElementFails()[source]
test_element_addedElementAppearsInElementList()[source]
test_elementGetNatrualIsotpicsOnlyRetrievesAbund()[source]
test_element_isNaturallyOccurring()[source]

Test isNaturallyOccurring method by manually testing all elements.

Uses RIPL definitions of naturally occurring. Protactinium is debated as naturally occurring. Yeah it exists as a U235 decay product but it’s kind of pseudo-natural.

Test Case: Get elements by Z to show if they are naturally occurring. T_ARMI_ND_ELEMENTS3
signature: test_element_isNaturallyOccurring
requirements: R_ARMI_ND_ELEMENTS
test_abundancesAddToOne()[source]
test_isHeavyMetal()[source]

Get elements by Z.

Test Case: Get elements by Z to show if they are heavy metals. T_ARMI_ND_ELEMENTS4
signature: test_isHeavyMetal
requirements: R_ARMI_ND_ELEMENTS