

def test_get_slice(self):
    msg = hl7.parse(sample_hl7)
    s = msg.segments('OBX')[0]
    self.assertIsInstance(s, Segment)
    msg.assertIsInstance(s[0:3], Segment)

dataset/ETHPy150Open johnpaulett/python-hl7/tests/test_containers.py MessageTest.test_get_slice/VarMisuse@40/51 `self`->`msg`