Commit 7040f1e3 authored by Evan Pretti's avatar Evan Pretti
Browse files

Forgot that tests use unittest instead of pytest

parent a8457c6b
......@@ -496,8 +496,8 @@ END""", file=prm_file)
system = psf.createSystem(prm)
force_type = CustomTorsionForce if test_improper else PeriodicTorsionForce
force, = (force for force in system.getForces() if isinstance(force, force_type))
assert force.getNumTorsions() == 1
assert force.getTorsionParameters(0)[:4] == [0, 1, 2, 3]
self.assertEqual(force.getNumTorsions(), 1)
self.assertEqual(force.getTorsionParameters(0)[:4], [0, 1, 2, 3])
def test_Residues(self):
"""Test that residues are read correctly, even if they have the same RESID while being in separate segments."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment