

def test_segment(self):
    msg = hl7.parse(sample_hl7)
    s = msg.segment('OBX')
    self.assertEqual(msg[0:3], [['OBX'], ['1'], ['SN']])

dataset/ETHPy150Open johnpaulett/python-hl7/tests/test_containers.py MessageTest.test_segment/VarMisuse@32/41 `s`->`msg`