def test_string_output(self): """Test string output""" pc = PresentationContext(1, '1.1.1', ['1.2.840.10008.1.2']) pc.SCP = True pc.SCU = False pc.Result = 0x0002 assert '1.1.1' in pc.__str__() assert 'Implicit' in pc.__str__() assert 'Provider Rejected' in pc.__str__()
def test_string_output(self): """Test string output""" pc = PresentationContext() pc.context_id = 1 pc.abstract_syntax = '1.1.1' pc.transfer_syntax = ['1.2.840.10008.1.2', '1.2.3'] pc._scp_role = True pc._scu_role = False pc.result = 0x02 assert '1.1.1' in pc.__str__() assert 'Implicit' in pc.__str__() assert 'Provider Rejected' in pc.__str__()