diff options
author | Robert Robinson <rerobins@gmail.com> | 2015-09-14 17:00:53 -0600 |
---|---|---|
committer | Robert Robinson <rerobins@gmail.com> | 2015-09-14 17:00:53 -0600 |
commit | 93c705fb3133b27388c0845f925b0615c88414b1 (patch) | |
tree | 143c6c4fd429710a0b4a29912cef0c7d2c769605 /tests/test_stream_xep_0050.py | |
parent | 0724f623bb613007f9acd6540efd4f256c8b6503 (diff) | |
download | slixmpp-93c705fb3133b27388c0845f925b0615c88414b1.tar.gz slixmpp-93c705fb3133b27388c0845f925b0615c88414b1.tar.bz2 slixmpp-93c705fb3133b27388c0845f925b0615c88414b1.tar.xz slixmpp-93c705fb3133b27388c0845f925b0615c88414b1.zip |
Fix xep_0050 changes after form refactor.
Diffstat (limited to 'tests/test_stream_xep_0050.py')
-rw-r--r-- | tests/test_stream_xep_0050.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_stream_xep_0050.py b/tests/test_stream_xep_0050.py index 261a0057..0a3eb718 100644 --- a/tests/test_stream_xep_0050.py +++ b/tests/test_stream_xep_0050.py @@ -119,7 +119,7 @@ class TestAdHocCommands(SleekTest): def handle_command(iq, session): def handle_form(form, session): - results.append(form['values']['foo']) + results.append(form.get_values()['foo']) form = self.xmpp['xep_0004'].makeForm('form') form.addField(var='foo', ftype='text-single', label='Foo') @@ -191,10 +191,10 @@ class TestAdHocCommands(SleekTest): def handle_command(iq, session): def handle_step2(form, session): - results.append(form['values']['bar']) + results.append(form.get_values()['bar']) def handle_step1(form, session): - results.append(form['values']['foo']) + results.append(form.get_values()['foo']) form = self.xmpp['xep_0004'].makeForm('form') form.addField(var='bar', ftype='text-single', label='Bar') @@ -426,7 +426,7 @@ class TestAdHocCommands(SleekTest): def handle_form(forms, session): for form in forms: - results.append(form['values']['FORM_TYPE']) + results.append(form.get_values()['FORM_TYPE']) form1 = self.xmpp['xep_0004'].makeForm('form') form1.addField(var='FORM_TYPE', ftype='hidden', value='form_1') |