Пример #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_add_san(self):

        r = Reissue()
        r.add_san('handsome.domain.com')

        assert r.order_changes.add[0] == 'handsome.domain.com'
Пример #4
0
    def test_add_san(self):

        r = Reissue()
        r.add_san('handsome.domain.com')

        assert r.order_changes.add[0] == 'handsome.domain.com'