armi.nuclearDataIO.tests.test_xsLibraries module

Tests for xsLibraries.IsotxsLibrary

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

Bases: object

really a test case

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

Bases: unittest.case.TestCase, armi.nuclearDataIO.tests.test_xsLibraries.TempFileMixin

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.Test_GetISOTXSFilesInWorkingDirectory(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_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.Pmatrx_merge_Tests(methodName='runTest')[source]

Bases: armi.nuclearDataIO.tests.test_xsLibraries.TestXSlibraryMerging

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: armi.nuclearDataIO.tests.test_xsLibraries.TestXSlibraryMerging

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: armi.nuclearDataIO.tests.test_xsLibraries.TestXSlibraryMerging

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