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

assume that the intention was to check for a non empty list

python 2: [1,2,3,4,5,6] >= whatever_int => True
python 3: [1,2,3,4,5,6] >= whatever_int => TypeError
parent 38a4f735
No related branches found
No related tags found
No related merge requests found
......@@ -634,12 +634,12 @@ class TestQSscore(unittest.TestCase):
cm_names_2)
# check symm_1 / symm_2
# (>= 1 symm. group, all groups same length, all chains appear)
self.assertGreaterEqual(qs_scorer.symm_1, 1)
self.assertGreaterEqual(len(qs_scorer.symm_1), 1)
ref_symm_1 = qs_scorer.symm_1[0]
self.assertTrue(all(len(cg) == len(ref_symm_1) for cg in qs_scorer.symm_1))
self.assertEqual(sorted(c for cg in qs_scorer.symm_1 for c in cg),
cm_names_1)
self.assertGreaterEqual(qs_scorer.symm_2, 1)
self.assertGreaterEqual(len(qs_scorer.symm_2), 1)
ref_symm_2 = qs_scorer.symm_2[0]
self.assertTrue(all(len(cg) == len(ref_symm_2) for cg in qs_scorer.symm_2))
self.assertEqual(sorted(c for cg in qs_scorer.symm_2 for c in cg),
......
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