Commit e935d42a by John Chodera (MSKCC)

Another fix attempt for nose test.

parent 127ce2fb
from nose.tools import ok_, eq_, raises from nose.tools import ok_, eq_, raises, assert_list_equal
from unittest.TestCase import assertItemsEqual
import simtk.openmm.app as app import simtk.openmm.app as app
import pdbfixer import pdbfixer
import tempfile import tempfile
...@@ -11,7 +10,7 @@ def remove_chain_ids_and_verify(pdbid, chain_ids_to_remove, expected_chain_ids_r ...@@ -11,7 +10,7 @@ def remove_chain_ids_and_verify(pdbid, chain_ids_to_remove, expected_chain_ids_r
fixer.removeChains(chainIds=chain_ids_to_remove) fixer.removeChains(chainIds=chain_ids_to_remove)
# Check to make sure asserted chains remain. # Check to make sure asserted chains remain.
chain_ids_remaining = [c.id for c in fixer.topology.chains()] chain_ids_remaining = [c.id for c in fixer.topology.chains()]
assertItemsEqual(chain_ids_remaining, expected_chain_ids_remaining) assert_list_equal(chain_ids_remaining, expected_chain_ids_remaining)
def test_removechain_ids(): def test_removechain_ids():
remove_chain_ids_and_verify('4JSV', [], ['B', 'D', 'A', 'C', 'B', 'A']) remove_chain_ids_and_verify('4JSV', [], ['B', 'D', 'A', 'C', 'B', 'A'])
......
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