armi.nucDirectory.tests.test_elements module

Tests for elements

class armi.nucDirectory.tests.test_elements.TestElement(methodName='runTest')[source]

Bases: unittest.case.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]
test_element_elementByZReturnsElement()[source]
test_element_elementBySymbolReturnsElement()[source]
test_element_addExistingElementFails()[source]
test_element_addedElementAppearsInElementList()[source]
test_element_getNatrualIsotpicsOnlyRetrievesAbundaceGt0()[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_abundancesAddToOne()[source]
test_isHeavyMetal()[source]