Пример #1
0
    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'
Пример #2
0
    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'
Пример #3
0
    def test_serialize_without_changes(self):
        r = Reissue()
        r.order_parameters.csr = 'Scav'
        root = r.serialize()

        assert not root.findall('.//OrderChange')
Пример #4
0
    def test_serialize_without_changes(self):
        r = Reissue()
        r.order_parameters.csr = 'Scav'
        root = r.serialize()

        assert not root.findall('.//OrderChange')