Skip to content

Commit

Permalink
Fix test for non-integer pdb_seq_num
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Feb 13, 2024
1 parent 1be7a12 commit 29ad70b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2761,18 +2761,18 @@ def test_poly_seq_scheme_handler_str_seq_id(self):
_pdbx_poly_seq_scheme.pdb_ins_code
A 1 1 6 6 ? .
A 1 2 7 12 ? .
A 1 3 8 24 ? X
A 1 3 8 24 ? .
A 1 4 9A 48A ? .
""")
s, = ihm.reader.read(fh)
asym, = s.asym_units
self.assertIsNone(asym._strand_id)
self.assertEqual(asym.auth_seq_id_map, {1: (6, None), 2: (7, None),
3: (8, 'X'), 4: ('9A', None)})
3: (8, None), 4: ('9A', None)})
self.assertEqual([asym.residue(i).auth_seq_id for i in range(1, 5)],
[6, 7, 8, '9A'])
self.assertIsNone(asym.residue(1).ins_code)
self.assertEqual(asym.residue(3).ins_code, 'X')
self.assertIsNone(asym.residue(3).ins_code)
self.assertEqual(asym.orig_auth_seq_id_map, {2: 12, 3: 24, 4: '48A'})

def test_nonpoly_scheme_handler(self):
Expand Down

0 comments on commit 29ad70b

Please sign in to comment.