

def test_segments_does_not_exist(self):
    msg = hl7.parse(sample_hl7)
    self.assertRaises(KeyError, msg.segments, 'BAD')

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