Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
94d8a51c
Commit
94d8a51c
authored
5 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
simple unit test for hbplus
parent
104b8d8e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/bindings/tests/CMakeLists.txt
+1
-0
1 addition, 0 deletions
modules/bindings/tests/CMakeLists.txt
modules/bindings/tests/test_hbplus.py
+25
-0
25 additions, 0 deletions
modules/bindings/tests/test_hbplus.py
with
26 additions
and
0 deletions
modules/bindings/tests/CMakeLists.txt
+
1
−
0
View file @
94d8a51c
...
...
@@ -9,6 +9,7 @@ set(OST_BINDINGS_UNIT_TESTS
test_tmtools.py
test_ialign.py
test_lga.py
test_hbplus.py
)
ost_unittest
(
MODULE bindings
...
...
This diff is collapsed.
Click to expand it.
modules/bindings/tests/test_hbplus.py
0 → 100644
+
25
−
0
View file @
94d8a51c
import
unittest
from
ost
import
*
from
ost
import
settings
from
ost.bindings
import
hbplus
class
TestHBPlusBinding
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
protein
=
io
.
LoadEntity
(
"
testfiles/testprotein.pdb
"
)
def
testHBondList
(
self
):
hbond_list
=
hbplus
.
HBondList
(
self
.
protein
)
self
.
assertEqual
(
len
(
hbond_list
),
499
)
def
testHBondScore
(
self
):
self
.
assertEqual
(
hbplus
.
HBondScore
(
self
.
protein
,
self
.
protein
),
1.0
)
if
__name__
==
"
__main__
"
:
try
:
settings
.
Locate
(
"
hbplus
"
)
except
:
print
(
"
Could not find hbplus, could not test binding...
"
)
sys
.
exit
(
0
)
from
ost
import
testutils
testutils
.
RunTests
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment