def test_property_setters(self): """Check the property setters are working correctly.""" pdu = A_ASSOCIATE_RQ() # pdu.called_ae_title assert pdu.called_ae_title == b'Default ' pdu.called_ae_title = 'TEST_SCP' assert pdu.called_ae_title == b'TEST_SCP ' # pdu.calling_ae_title assert pdu.calling_ae_title == b'Default ' pdu.calling_ae_title = 'TEST_SCP2' assert pdu.calling_ae_title == b'TEST_SCP2 '
def test_equality(self): """Test the equality operator""" aa = A_ASSOCIATE_RQ() bb = A_ASSOCIATE_RQ() assert aa == bb assert not aa == 'TEST' aa.decode(a_associate_rq) assert not aa == bb bb.decode(a_associate_rq) assert aa == bb aa.calling_ae_title = b'TEST_AE_TITLE_00' assert not aa == bb assert aa == aa