Package schrodinger :: Package test :: Module custom_assertions
[hide private]
[frames] | no frames]

Module custom_assertions

Contains custom assertions for use with unittest and Schrodinger data structures.

copyright (c) Schrodinger, LLC. All rights reserved.

Classes [hide private]
  StructureAssertionsTestCase
"Convenience" class to allow structural assertions to be called similarly to built in assertions.
Functions [hide private]
None
assertSameNumberOfAtoms(st1, st2)
Check that two structures have the same number of atoms.
None
assertSameStructure(st1, st2)
Check that two structures have the same connectivity.
None
assertConformersAlmostEqual(st1, st2, max_rmsd=0.1)
Check that two conformers (same atoms in the same order) are approximately equal by determining the RMSD.
Variables [hide private]
  __unittest = True
Keeps stack trace from including this module.
Function Details [hide private]

assertSameNumberOfAtoms(st1, st2)

 

Check that two structures have the same number of atoms. Only exists to make reporting cleaner.

Parameters:
Returns: None

assertSameStructure(st1, st2)

 

Check that two structures have the same connectivity.

Parameters:
Returns: None

assertConformersAlmostEqual(st1, st2, max_rmsd=0.1)

 

Check that two conformers (same atoms in the same order) are approximately equal by determining the RMSD. If they are not, or if the number of atoms differs or the SMILES patterns don't match, an AssertionError is raised. Ignores rotation and translation.

Parameters:
Returns: None