summaryrefslogtreecommitdiff
path: root/tests/test_stanza_xep_0060.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-10-04 21:15:01 +0200
committermathieui <mathieui@mathieui.net>2016-10-04 21:15:01 +0200
commit5da31db0c7386f43a344ab7c9bc82dc0a6836b85 (patch)
tree130e227331749d1b6e332ab2a4ca33907ba4efc5 /tests/test_stanza_xep_0060.py
parentf8cea760b661b6c995c73d6bee3e163d78d33353 (diff)
downloadslixmpp-5da31db0c7386f43a344ab7c9bc82dc0a6836b85.tar.gz
slixmpp-5da31db0c7386f43a344ab7c9bc82dc0a6836b85.tar.bz2
slixmpp-5da31db0c7386f43a344ab7c9bc82dc0a6836b85.tar.xz
slixmpp-5da31db0c7386f43a344ab7c9bc82dc0a6836b85.zip
Fix stanza accessors case in tests
They were using deprecated (and-removed) style.
Diffstat (limited to 'tests/test_stanza_xep_0060.py')
-rw-r--r--tests/test_stanza_xep_0060.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_stanza_xep_0060.py b/tests/test_stanza_xep_0060.py
index 567757cb..9a5e3e0b 100644
--- a/tests/test_stanza_xep_0060.py
+++ b/tests/test_stanza_xep_0060.py
@@ -136,11 +136,11 @@ class TestPubsubStanzas(SlixTest):
iq = self.Iq()
iq['pubsub_owner']['default']
iq['pubsub_owner']['default']['node'] = 'mynode'
- iq['pubsub_owner']['default']['form'].addField('pubsub#title',
+ iq['pubsub_owner']['default']['form'].add_field('pubsub#title',
ftype='text-single',
value='This thing is awesome')
self.check(iq, """
- <iq id="0">
+ <iq id="0">
<pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
<default node="mynode">
<x xmlns="jabber:x:data" type="form">
@@ -161,7 +161,7 @@ class TestPubsubStanzas(SlixTest):
iq['pubsub']['subscribe']['options']['node'] = 'cheese'
iq['pubsub']['subscribe']['options']['jid'] = 'fritzy@netflint.net/slixmpp'
form = xep_0004.Form()
- form.addField('pubsub#title', ftype='text-single', value='this thing is awesome')
+ form.add_field('pubsub#title', ftype='text-single', value='this thing is awesome')
iq['pubsub']['subscribe']['options']['options'] = form
self.check(iq, """
<iq id="0">
@@ -253,7 +253,7 @@ class TestPubsubStanzas(SlixTest):
pub = iq['pubsub']
pub['create']['node'] = 'testnode2'
pub['configure']['form']['type'] = 'submit'
- pub['configure']['form'].setFields([
+ pub['configure']['form'].set_fields([
('FORM_TYPE', {'type': 'hidden',
'value': 'http://jabber.org/protocol/pubsub#node_config'}),
('pubsub#node_type', {'type': 'list-single',