From 5da31db0c7386f43a344ab7c9bc82dc0a6836b85 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 4 Oct 2016 21:15:01 +0200 Subject: Fix stanza accessors case in tests They were using deprecated (and-removed) style. --- tests/test_stanza_xep_0060.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_stanza_xep_0060.py') 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, """ - + @@ -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, """ @@ -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', -- cgit v1.2.3