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
def30674
Commit
def30674
authored
Jul 18, 2015
by
John Chodera (MSKCC)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempting to fix URL timeout issues with nosetests.
parent
b8dc41c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
pdbfixer/tests/test_removechains.py
+3
-0
No files found.
pdbfixer/tests/test_removechains.py
View file @
def30674
...
@@ -2,6 +2,7 @@ from nose.tools import ok_, eq_, raises, assert_list_equal
...
@@ -2,6 +2,7 @@ from nose.tools import ok_, eq_, raises, assert_list_equal
import
simtk.openmm.app
as
app
import
simtk.openmm.app
as
app
import
pdbfixer
import
pdbfixer
import
tempfile
import
tempfile
import
time
def
remove_chain_ids_and_verify
(
pdbid
,
chain_ids_to_remove
,
expected_chain_ids_remaining
):
def
remove_chain_ids_and_verify
(
pdbid
,
chain_ids_to_remove
,
expected_chain_ids_remaining
):
# Create a PDBFixer instance for the given pdbid
# Create a PDBFixer instance for the given pdbid
...
@@ -11,6 +12,8 @@ def remove_chain_ids_and_verify(pdbid, chain_ids_to_remove, expected_chain_ids_r
...
@@ -11,6 +12,8 @@ def remove_chain_ids_and_verify(pdbid, chain_ids_to_remove, expected_chain_ids_r
# 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_list_equal
(
chain_ids_remaining
,
expected_chain_ids_remaining
)
assert_list_equal
(
chain_ids_remaining
,
expected_chain_ids_remaining
)
# Slow down to prevent rapid URL retrievals
time
.
sleep
(
1
)
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