From 7cd1cf32ae698965ed488ade17f63afd7d5afedf Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 20 Sep 2016 15:58:29 +0900 Subject: Various XEPs: Remove deprecated aliases. --- tests/test_stanza_xep_0033.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/test_stanza_xep_0033.py') diff --git a/tests/test_stanza_xep_0033.py b/tests/test_stanza_xep_0033.py index 0e560a7e..b37dd1a5 100644 --- a/tests/test_stanza_xep_0033.py +++ b/tests/test_stanza_xep_0033.py @@ -13,7 +13,7 @@ class TestAddresses(SlixTest): def testAddAddress(self): """Testing adding extended stanza address.""" msg = self.Message() - msg['addresses'].addAddress(atype='to', jid='to@header1.org') + msg['addresses'].add_address(atype='to', jid='to@header1.org') self.check(msg, """ @@ -23,9 +23,9 @@ class TestAddresses(SlixTest): """) msg = self.Message() - msg['addresses'].addAddress(atype='replyto', - jid='replyto@header1.org', - desc='Reply address') + msg['addresses'].add_address(atype='replyto', + jid='replyto@header1.org', + desc='Reply address') self.check(msg, """ @@ -48,7 +48,7 @@ class TestAddresses(SlixTest): """ msg = self.Message() - msg['addresses'].setAddresses([ + msg['addresses'].set_addresses([ {'type':'replyto', 'jid':'replyto@header1.org', 'desc':'Reply address'}, @@ -69,9 +69,9 @@ class TestAddresses(SlixTest): """Testing adding URI attribute to extended stanza address.""" msg = self.Message() - addr = msg['addresses'].addAddress(atype='to', - jid='to@header1.org', - node='foo') + addr = msg['addresses'].add_address(atype='to', + jid='to@header1.org', + node='foo') self.check(msg, """ @@ -101,7 +101,7 @@ class TestAddresses(SlixTest): """ msg = self.Message() - addr = msg['addresses'].addAddress(jid='to@header1.org', atype='to') + addr = msg['addresses'].add_address(jid='to@header1.org', atype='to') self.check(msg, xmlstring % '') addr['delivered'] = True -- cgit v1.2.3