armi.nuclearDataIO.tests.test_xsLibraries module

Tests for xsLibraries.IsotxsLibrary.

class armi.nuclearDataIO.tests.test_xsLibraries.TempFileMixin[source]

Bases: object

Not a test; just helpful test tooling.

property testFileName
class armi.nuclearDataIO.tests.test_xsLibraries.TestXSLibrary(methodName='runTest')[source]

Bases: TempFileMixin, 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_canPickleAndUnpickleISOTXS()[source]
test_canPickleAndUnpickleGAMISO()[source]
test_canPickleAndUnpicklePMATRX()[source]
test_compareWorks()[source]
test_compareDifferentComponentsOfAnXSLibrary()[source]
test_mergeFailsWithNonIsotxsFiles()[source]
test_isotxsLibraryAttributes()[source]
test_gamisoLibraryAttributes()[source]
test_pmatrxLibraryAttributes()[source]
test_mergeXSLibrariesWithDifferentDataWorks()[source]
test_canWriteIsotxsFromCombinedXSLibrary()[source]
test_canWriteGamisoFromCombinedXSLibrary()[source]
test_canWritePmatrxFromCombinedXSLibrary()[source]
class armi.nuclearDataIO.tests.test_xsLibraries.TestGetISOTXSFilesInWorkingDirectory(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_getISOTXSFilesWithoutLibrarySuffix()[source]
test_getISOTXSFilesWithLibrarySuffix()[source]
assert_contains_only(container, shouldBeThere, shouldNotBeThere)[source]

Utility method for saying what things contain.

This could just check the contents and the length, but the error produced when you pass shouldNotBeThere is much nicer.

class armi.nuclearDataIO.tests.test_xsLibraries.AbstractTestXSlibraryMerging[source]

Bases: TempFileMixin

A shared class that defines tests that should be true for all IsotxsLibrary merging.

Notes

This is just a base class, it isn’t run directly.

getErrorType()[source]
getReadFunc()[source]
getWriteFunc()[source]
getLibAAPath()[source]
getLibABPath()[source]
getLibAA_ABPath()[source]
getLibLumpedPath()[source]
test_cannotMergeXSLibWithSameNuclideNames()[source]
test_cannotMergeXSLibxWithDifferentGroupStructure()[source]
test_mergeEmptyXSLibWithOtherEssentiallyClonesTheOther()[source]
test_mergeTwoXSLibFiles()[source]
test_canRemoveIsotopes()[source]
class armi.nuclearDataIO.tests.test_xsLibraries.Pmatrx_Merge_Tests(methodName='runTest')[source]

Bases: AbstractTestXSlibraryMerging, 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.

getErrorType()[source]
getReadFunc()[source]
getWriteFunc()[source]
getLibAAPath()[source]
getLibABPath()[source]
getLibAA_ABPath()[source]
getLibLumpedPath()[source]
test_canRemoveIsotopes()[source]
test_cannotMergeXSLibsWithDifferentGammaGroupStructures()[source]
class armi.nuclearDataIO.tests.test_xsLibraries.Isotxs_Merge_Tests(methodName='runTest')[source]

Bases: AbstractTestXSlibraryMerging, 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.

getErrorType()[source]
getReadFunc()[source]
getWriteFunc()[source]
getLibAAPath()[source]
getLibABPath()[source]
getLibAA_ABPath()[source]
getLibLumpedPath()[source]
class armi.nuclearDataIO.tests.test_xsLibraries.Gamiso_Merge_Tests(methodName='runTest')[source]

Bases: AbstractTestXSlibraryMerging, 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.

getErrorType()[source]
getReadFunc()[source]
getWriteFunc()[source]
getLibAAPath()[source]
getLibABPath()[source]
getLibAA_ABPath()[source]
getLibLumpedPath()[source]
class armi.nuclearDataIO.tests.test_xsLibraries.Combined_Merge_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_mergeAllXSLibFiles()[source]