Testing tools (sknano.testing)


Helper funcs to generate test data

generate_atoms(*args, *[, elements, ...]) Helper function to generate sequence of atoms for testing purposes.
generate_structure(*args, *[, generator_class]) Helper function to generate StructureData for running unit tests.

Tools for timing processes

Timer([func]) Stopwatch Timer class.

Test fixtures

AtomsTestFixture([methodName]) Mixin unittest.TestCase class defining setUp method to generate list of atoms.
GeneratorTestFixtures([methodName]) Mixin unittest.TestCase class defining setUp/tearDown methods to keep track of and delete the structure data files generated by the sknano.generators classes.