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_stream_xep_0050.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_stream_xep_0050.py')
-rw-r--r-- | tests/test_stream_xep_0050.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/test_stream_xep_0050.py b/tests/test_stream_xep_0050.py index 6ebf88a9..65b5f678 100644 --- a/tests/test_stream_xep_0050.py +++ b/tests/test_stream_xep_0050.py @@ -76,7 +76,7 @@ class TestAdHocCommands(SlixTest): """Test running a command with no steps.""" def handle_command(iq, session): - form = self.xmpp['xep_0004'].makeForm(ftype='result') + form = self.xmpp['xep_0004'].make_form(ftype='result') form.addField(var='foo', ftype='text-single', label='Foo', value='bar') @@ -122,7 +122,7 @@ class TestAdHocCommands(SlixTest): results.append(form.get_values()['foo']) session['payload'] = None - form = self.xmpp['xep_0004'].makeForm('form') + form = self.xmpp['xep_0004'].make_form('form') form.addField(var='foo', ftype='text-single', label='Foo') session['payload'] = form @@ -198,7 +198,7 @@ class TestAdHocCommands(SlixTest): def handle_step1(form, session): results.append(form.get_values()['foo']) - form = self.xmpp['xep_0004'].makeForm('form') + form = self.xmpp['xep_0004'].make_form('form') form.addField(var='bar', ftype='text-single', label='Bar') session['payload'] = form @@ -207,7 +207,7 @@ class TestAdHocCommands(SlixTest): return session - form = self.xmpp['xep_0004'].makeForm('form') + form = self.xmpp['xep_0004'].make_form('form') form.addField(var='foo', ftype='text-single', label='Foo') session['payload'] = form @@ -312,7 +312,7 @@ class TestAdHocCommands(SlixTest): def handle_cancel(iq, session): results.append('canceled') - form = self.xmpp['xep_0004'].makeForm('form') + form = self.xmpp['xep_0004'].make_form('form') form.addField(var='foo', ftype='text-single', label='Foo') session['payload'] = form @@ -380,7 +380,7 @@ class TestAdHocCommands(SlixTest): """Test adding notes to commands.""" def handle_command(iq, session): - form = self.xmpp['xep_0004'].makeForm(ftype='result') + form = self.xmpp['xep_0004'].make_form(ftype='result') form.addField(var='foo', ftype='text-single', label='Foo', value='bar') @@ -431,11 +431,11 @@ class TestAdHocCommands(SlixTest): results.append(form.get_values()['FORM_TYPE']) session['payload'] = None - form1 = self.xmpp['xep_0004'].makeForm('form') + form1 = self.xmpp['xep_0004'].make_form('form') form1.addField(var='FORM_TYPE', ftype='hidden', value='form_1') form1.addField(var='foo', ftype='text-single', label='Foo') - form2 = self.xmpp['xep_0004'].makeForm('form') + form2 = self.xmpp['xep_0004'].make_form('form') form2.addField(var='FORM_TYPE', ftype='hidden', value='form_2') form2.addField(var='foo', ftype='text-single', label='Foo') @@ -528,7 +528,7 @@ class TestAdHocCommands(SlixTest): results.append(item) def handle_step2(iq, session): - form = self.xmpp['xep_0004'].makeForm(ftype='submit') + form = self.xmpp['xep_0004'].make_form(ftype='submit') form.addField(var='bar', value='123') session['custom_data'].append('baz') @@ -537,7 +537,7 @@ class TestAdHocCommands(SlixTest): self.xmpp['xep_0050'].complete_command(session) def handle_step1(iq, session): - form = self.xmpp['xep_0004'].makeForm(ftype='submit') + form = self.xmpp['xep_0004'].make_form(ftype='submit') form.addField(var='foo', value='42') session['custom_data'].append('bar') |