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_add_san(self): r = Reissue() r.add_san('handsome.domain.com') assert r.order_changes.add[0] == 'handsome.domain.com'