コード例 #1
0
    def test_edit_san(self):

        r = Reissue()
        r.edit_san('soldier.domain.com', 'sniper.domain.com')

        assert r.order_changes.edit[0] == ('soldier.domain.com',
                                           'sniper.domain.com')
コード例 #2
0
    def test_edit_san(self):

        r = Reissue()
        r.edit_san('soldier.domain.com', 'sniper.domain.com')

        assert r.order_changes.edit[0] == (
            'soldier.domain.com', 'sniper.domain.com'
        )
コード例 #3
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'
コード例 #4
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'