iodata.test.common module¶
Utilities for unit tests.
- check_orthonormal(mo_coeffs, ao_overlap, atol=1e-05)[source]¶
Check that molecular orbitals are orthogonal and normalized.
- create_generalized()[source]¶
Create a dummy IOData object with generalized molecular orbitals.
- Return type:
- load_one_warning(filename, fmt=None, match=None, **kwargs)[source]¶
Call load_one, catching expected LoadWarning.
- Parameters:
filename (
str
) – The file in the unit test data directory to load.fmt (
Optional
[str
]) – The name of the file format module to use. When not given, it is guessed from the filename.match (
Optional
[str
]) – When given, loading the file is expected to raise a warning whose message string contains match.**kwargs – Keyword arguments are passed on to the format-specific load_one function.
- Return type:
- Returns:
The instance of IOData with data loaded from the input files.