Commit 127ce2fb by John Chodera (MSKCC)

Nose test fix to (hopefully) add Python 3 compatibility.

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