armi.nucDirectory.tests.test_elementsGlobal module

Tests for elements.

Notes

These are tests of the old global nuclide logic. ARMI is currently transitioning away from such global data, so these tests are semi-duplicate and will only be preserved as long as global nulides are.

class armi.nucDirectory.tests.test_elementsGlobal.TestElementsGlobal(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_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_abundancesAddToOne()[source]
test_isHeavyMetal()[source]

Get elements by Z.