schrodinger.test package

schrodinger.test.is_display_present()[source]

Returns TRUE if user can access display.

schrodinger.test.relpath_from_testdir(*path_components)[source]

Absolute path to a file in the same directory as the calling code.

schrodinger.test.assert_structures_identical(st1, st2, tolerance=1e-06)[source]

Determines if the given two structures are exactly the same. Specifically, determines if the two structures have the same atoms with the same properties and bonds in the same order.

Parameters
  • st1 (Structure) – First structure to compare

  • st2 (Structure) – Second structure to compare

  • tolerance (float) – Absolute tolerance for comparing fractional atom and bond properties. Relative tolerance is not supported because properties read from file are limited to six decimal places, so this assertion might return false depending on the absolute value of the property.

schrodinger.test.mmshare_source_dir()[source]
schrodinger.test.mmshare_nondist_dir()[source]
schrodinger.test.add_build_tools_to_path()[source]
schrodinger.test.add_nondist_to_path()[source]
schrodinger.test.stringio_handler(logger: logging.Logger) → Iterator[_io.StringIO][source]

Temporarily add a StringIO as the stream of a handler in order to assert output of log.

Subpackages