Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pdbfixer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pdbfixer
Commits
e935d42a
Commit
e935d42a
authored
Mar 03, 2015
by
John Chodera (MSKCC)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another fix attempt for nose test.
parent
127ce2fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
pdbfixer/tests/test_removechains.py
+2
-3
No files found.
pdbfixer/tests/test_removechains.py
View file @
e935d42a
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
()]
assert
ItemsE
qual
(
chain_ids_remaining
,
expected_chain_ids_remaining
)
assert
_list_e
qual
(
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'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment