

def test_segments_dict_key(self):
    msg = hl7.parse(sample_hl7)
    s = msg['OBX']
    self.assertEqual(len(s), 2)
    self.assertEqual(s[0][0:3], [['OBX'], ['1'], ['SN']])
    self.assertEqual(s[1][0:3], [['OBX'], ['2'], ['FN']])

dataset/ETHPy150Open johnpaulett/python-hl7/tests/test_containers.py MessageTest.test_segments_dict_key/original