Skip to content

Commit 0cc0e36

Browse files
committed
Update test_structureSimilarity.py
1 parent 45e486f commit 0cc0e36

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

test/test_structureSimilarity.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ def setUp(self):
2222
self.dockQ = 0.682191
2323
self.capriClass = 'medium'
2424
self.nclashes_ref = 4
25+
####################################################################
26+
# test check_residues to see if pdb files match or not
27+
####################################################################
28+
def test_check_residues(self):
29+
decoy = Path(pdb_folder, '1AK4', '1AK4_5w_nonmatch.pdb')
30+
with self.assertRaisesRegex(ValueError,
31+
'Residue numbering not identical'):
32+
sim = StructureSimilarity(decoy, self.ref)
33+
sim.check_residues()
2534

2635
####################################################################
2736
# test i-rmsd
@@ -90,12 +99,6 @@ def test_lrmsdfast_method(self):
9099
result = self.sim.compute_lrmsd_fast(method='quaternion')
91100
self.assertEqual(result, self.lrmsd)
92101

93-
def test_lrmsdfast_check(self):
94-
"""verify compute_lrmsd_fast(check=False)"""
95-
with self.assertRaisesRegex(ValueError,
96-
'operands could not be broadcast'):
97-
_ = self.sim.compute_lrmsd_fast(check=False)
98-
99102
def test_lrmsdsql_default(self):
100103
"""verify compute_lrmsd_pdb2sql()"""
101104
result = self.sim.compute_lrmsd_pdb2sql()

0 commit comments

Comments
 (0)