# tests Package

## `tests` Package

## `ConfigDictTest` Module

`PyMca5.tests.ConfigDictTest.``getSuite`(auto=True)

`PyMca5.tests.ConfigDictTest.``test`(auto=False)

class `PyMca5.tests.ConfigDictTest.``testConfigDict`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  `setUp`()

    import the module

  `tearDown`()

    clean up any possible files

  `testConfigDictIO`()
  `testConfigDictImport`()

## `DataTest` Module

`PyMca5.tests.DataTest.``getSuite`(auto=True)

`PyMca5.tests.DataTest.``test`(auto=False)

class `PyMca5.tests.DataTest.``testData`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  `ELEMENTS` = ['H', 'He', 'Li', 'Be', 'B', 'C', 'N', 'O', 'F', 'Ne', 'Na', 'Mg', 'Al', 'Si', 'P', 'S', 'Cl', 'Ar', 'K', 'Ca', 'Sc', 'Ti', 'V', 'Cr', 'Mn', 'Fe', 'Co', 'Ni', 'Cu', 'Zn', 'Ga', 'Ge', 'As', 'Se', 'Br', 'Kr', 'Rb', 'Sr', 'Y', 'Zr', 'Nb', 'Mo', 'Tc', 'Ru', 'Rh', 'Pd', 'Ag', 'Cd', 'In', 'Sn', 'Sb', 'Te', 'I', 'Xe', 'Cs', 'Ba', 'La', 'Ce', 'Pr', 'Nd', 'Pm', 'Sm', 'Eu', 'Gd', 'Tb', 'Dy', 'Ho', 'Er', 'Tm', 'Yb', 'Lu', 'Hf', 'Ta', 'W', 'Re', 'Os', 'Ir', 'Pt', 'Au', 'Hg', 'Tl', 'Pb', 'Bi', 'Po', 'At', 'Rn', 'Fr', 'Ra', 'Ac', 'Th', 'Pa', 'U', 'Np', 'Pu', 'Am', 'Cm', 'Bk', 'Cf', 'Es', 'Fm', 'Md', 'No', 'Lr', 'Rf', 'Db', 'Sg', 'Bh', 'Hs', 'Mt']
  `setUp`()

    Get the data directory

  `testDataDirectoryPresence`()
  `testDataFilePresence`()
  `testDocDirectoryPresence`()
  `testFisxDataDirectoryPresence`()

## `EdfFileTest` Module

`PyMca5.tests.EdfFileTest.``getSuite`(auto=True)

`PyMca5.tests.EdfFileTest.``test`(auto=False)

class `PyMca5.tests.EdfFileTest.``testEdfFile`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  `setUp`()

    import the EdfFile module

  `tearDown`()

    clean up any possible files

  `testEdfFileImport`()
  `testEdfFileReadWrite`()

## `ElementsTest` Module

`PyMca5.tests.ElementsTest.``getSuite`(auto=True)

`PyMca5.tests.ElementsTest.``test`(auto=False)

class `PyMca5.tests.ElementsTest.``testElements`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  `ELEMENTS` = ['H', 'He', 'Li', 'Be', 'B', 'C', 'N', 'O', 'F', 'Ne', 'Na', 'Mg', 'Al', 'Si', 'P', 'S', 'Cl', 'Ar', 'K', 'Ca', 'Sc', 'Ti', 'V', 'Cr', 'Mn', 'Fe', 'Co', 'Ni', 'Cu', 'Zn', 'Ga', 'Ge', 'As', 'Se', 'Br', 'Kr', 'Rb', 'Sr', 'Y', 'Zr', 'Nb', 'Mo', 'Tc', 'Ru', 'Rh', 'Pd', 'Ag', 'Cd', 'In', 'Sn', 'Sb', 'Te', 'I', 'Xe', 'Cs', 'Ba', 'La', 'Ce', 'Pr', 'Nd', 'Pm', 'Sm', 'Eu', 'Gd', 'Tb', 'Dy', 'Ho', 'Er', 'Tm', 'Yb', 'Lu', 'Hf', 'Ta', 'W', 'Re', 'Os', 'Ir', 'Pt', 'Au', 'Hg', 'Tl', 'Pb', 'Bi', 'Po', 'At', 'Rn', 'Fr', 'Ra', 'Ac', 'Th', 'Pa', 'U', 'Np', 'Pu', 'Am', 'Cm', 'Bk', 'Cf', 'Es', 'Fm', 'Md', 'No', 'Lr', 'Rf', 'Db', 'Sg', 'Bh', 'Hs', 'Mt']
  `getCrossSections`(element, energy)
  `setUp`()

    Get the data directory

  `testDataDirectoryPresence`()
  `testElementCrossSectionsCalculation`()
  `testElementCrossSectionsReadout`()
  `testMaterialCrossSectionsCalculation`()
  `testPeakIdentification`()

## `GefitTest` Module

`PyMca5.tests.GefitTest.``getSuite`(auto=True)

`PyMca5.tests.GefitTest.``test`(auto=False)

class `PyMca5.tests.GefitTest.``testGefit`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  `gaussianPlusLinearBackground`(param, t)
  `setUp`()

    import the module

  `testGefitImport`()
  `testGefitLeastSquares`()

## `PCAToolsTest` Module

`PyMca5.tests.PCAToolsTest.``getSuite`(auto=True)

`PyMca5.tests.PCAToolsTest.``test`(auto=False)

class `PyMca5.tests.PCAToolsTest.``testPCATools`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  `testPCAToolsCovariance`()
  `testPCAToolsImport`()
  `testPCAToolsPCA`()

## `SpecfileTest` Module

`PyMca5.tests.SpecfileTest.``getSuite`(auto=True)

`PyMca5.tests.SpecfileTest.``test`(auto=False)

class `PyMca5.tests.SpecfileTest.``testSpecfile`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  `setUp`()

    import the module

  `tearDown`()

    clean up any possible files

  `testSpecfileImport`()
  `testSpecfileReading`()
  `testSpecfileReadingCompatibleWithUserLocale`()

## `StackBaseTest` Module

class `PyMca5.tests.StackBaseTest.``DummyArray`(data)

  Bases: `object`

  `dtype`
  `getDType`()
  `getShape`()
  `getSize`()
  `shape`
  `size`

`PyMca5.tests.StackBaseTest.``getSuite`(auto=True)

`PyMca5.tests.StackBaseTest.``test`(auto=False)

class `PyMca5.tests.StackBaseTest.``testStackBase`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  `testStackBaseImport`()
  `testStackBaseStack1DDataHandling`()
  `testStackBaseStack2DDataHandling`()

## `TestAll` Module

`PyMca5.tests.TestAll.``getSuite`(auto=True)

`PyMca5.tests.TestAll.``main`(auto=True)

## `specfilewrapperTest` Module

`PyMca5.tests.specfilewrapperTest.``getSuite`(auto=True)

`PyMca5.tests.specfilewrapperTest.``test`(auto=False)

class `PyMca5.tests.specfilewrapperTest.``testSpecfilewrapper`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  `setUp`()

    import the module

  `tearDown`()

    clean up any possible files

  `testSpecfilewrapperImport`()
  `testSpecfilewrapperReading`()
  `testSpecfilewrapperReadingCompatibleWithUserLocale`()
  `testTrainingSpectrumReading`()