Skip to content

Commit b0443e7

Browse files
author
Lenna X. Peterson
committed
MMCIF test checks serial_num (real model id)
1 parent b453a29 commit b0443e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/test_MMCIF.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def test_parser(self):
4646
self.assertEqual(len(structure), 1)
4747
for ppbuild in [PPBuilder(), CaPPBuilder()]:
4848
#==========================================================
49+
# Check that serial_num (model column) is stored properly
50+
self.assertEqual(structure[0].serial_num, 1)
4951
#First try allowing non-standard amino acids,
5052
polypeptides = ppbuild.build_peptides(structure[0], False)
5153
self.assertEqual(len(polypeptides), 1)
@@ -98,6 +100,10 @@ def testModels(self):
98100
self.assertEqual(len(structure), 3)
99101
for ppbuild in [PPBuilder(), CaPPBuilder()]:
100102
#==========================================================
103+
# Check that serial_num (model column) is stored properly
104+
self.assertEqual(structure[0].serial_num, 1)
105+
self.assertEqual(structure[1].serial_num, 2)
106+
self.assertEqual(structure[2].serial_num, 3)
101107
#First try allowing non-standard amino acids,
102108
polypeptides = ppbuild.build_peptides(structure[0], False)
103109
self.assertEqual(len(polypeptides), 1)

0 commit comments

Comments
 (0)