summaryrefslogtreecommitdiff
path: root/tests/test_stream_xep_0050.py
diff options
context:
space:
mode:
authorMike Taylor <bear42@gmail.com>2015-09-18 15:11:47 -0400
committerMike Taylor <bear42@gmail.com>2015-09-18 15:11:47 -0400
commit5525ef22851d42246782fa0adf1dc2b40e493840 (patch)
tree276bd6aab21a1528b7bac772428182fb4b400ca7 /tests/test_stream_xep_0050.py
parentda14ce16ec564a11394dc0ee6ee446a4dfa97a5d (diff)
parent0b14ef82d4058925e7e9db22038777d4654e8199 (diff)
downloadslixmpp-5525ef22851d42246782fa0adf1dc2b40e493840.tar.gz
slixmpp-5525ef22851d42246782fa0adf1dc2b40e493840.tar.bz2
slixmpp-5525ef22851d42246782fa0adf1dc2b40e493840.tar.xz
slixmpp-5525ef22851d42246782fa0adf1dc2b40e493840.zip
Merge pull request #395 from rerobins/refactor_forms
XEP_0004: Data Forms use register_stanza_plugin
Diffstat (limited to 'tests/test_stream_xep_0050.py')
-rw-r--r--tests/test_stream_xep_0050.py8
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')