def test_serialize(self): r = Reissue() r.order_parameters.order_partner_order_id = '1989' r.add_san('torgue.domain.com') r.delete_san('jack.domain.com') r.edit_san('box.domain.com', 'gear.domain.com') root = r.serialize() assert len(root.findall('.//ChangeType')) == 3 assert root.find('.//OriginalPartnerOrderID').text == '1989'
def test_serialize_without_changes(self): r = Reissue() r.order_parameters.csr = 'Scav' root = r.serialize() assert not root.findall('.//OrderChange')