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_element_elementByZReturnsElement()[source]

Get elements by Z.

test_element_elementBySymbolReturnsElement()[source]

Get elements by symbol.

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]

Get elements by Z.