Skip to content
Snippets Groups Projects
Commit 94d8a51c authored by Studer Gabriel's avatar Studer Gabriel
Browse files

simple unit test for hbplus

parent 104b8d8e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment