diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-09-20 15:58:29 +0900 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-09-20 16:23:02 +0900 |
commit | 7cd1cf32ae698965ed488ade17f63afd7d5afedf (patch) | |
tree | 45929eae4ee52b901167596b8d3117871f3ff67f /tests/test_stanza_xep_0033.py | |
parent | d099e353a4e2804a58153937719259518ab8439e (diff) | |
download | slixmpp-7cd1cf32ae698965ed488ade17f63afd7d5afedf.tar.gz slixmpp-7cd1cf32ae698965ed488ade17f63afd7d5afedf.tar.bz2 slixmpp-7cd1cf32ae698965ed488ade17f63afd7d5afedf.tar.xz slixmpp-7cd1cf32ae698965ed488ade17f63afd7d5afedf.zip |
Various XEPs: Remove deprecated aliases.
Diffstat (limited to 'tests/test_stanza_xep_0033.py')
-rw-r--r-- | tests/test_stanza_xep_0033.py | 18 |
1 files changed, 9 insertions, 9 deletions
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, """ <message> <addresses xmlns="http://jabber.org/protocol/address"> @@ -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, """ <message> <addresses xmlns="http://jabber.org/protocol/address"> @@ -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, """ <message> <addresses xmlns="http://jabber.org/protocol/address"> @@ -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 |