summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Robinson <rerobins@gmail.com>2015-09-12 20:08:21 -0600
committerRobert Robinson <rerobins@gmail.com>2015-09-12 20:08:21 -0600
commitffb2b6bc0464a9646d4b4bca3943d3a89dfc13a6 (patch)
treee90d4925c5127030fa46c12f87c4c6c192c3817f
parent4a24f58be26f8d5040dab2ddc3428bd989296fdb (diff)
downloadslixmpp-ffb2b6bc0464a9646d4b4bca3943d3a89dfc13a6.tar.gz
slixmpp-ffb2b6bc0464a9646d4b4bca3943d3a89dfc13a6.tar.bz2
slixmpp-ffb2b6bc0464a9646d4b4bca3943d3a89dfc13a6.tar.xz
slixmpp-ffb2b6bc0464a9646d4b4bca3943d3a89dfc13a6.zip
Update test_stream_xep_0050.py
Fix Unit Test for adhoc 50 stream.
-rw-r--r--tests/test_stream_xep_0050.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_stream_xep_0050.py b/tests/test_stream_xep_0050.py
index 261a0057..8fd09a8d 100644
--- a/tests/test_stream_xep_0050.py
+++ b/tests/test_stream_xep_0050.py
@@ -120,6 +120,7 @@ class TestAdHocCommands(SleekTest):
def handle_form(form, session):
results.append(form['values']['foo'])
+ session['payload'] = None
form = self.xmpp['xep_0004'].makeForm('form')
form.addField(var='foo', ftype='text-single', label='Foo')
@@ -192,6 +193,7 @@ class TestAdHocCommands(SleekTest):
def handle_step2(form, session):
results.append(form['values']['bar'])
+ session['payload'] = None
def handle_step1(form, session):
results.append(form['values']['foo'])
@@ -427,6 +429,7 @@ class TestAdHocCommands(SleekTest):
def handle_form(forms, session):
for form in forms:
results.append(form['values']['FORM_TYPE'])
+ session['payload'] = None
form1 = self.xmpp['xep_0004'].makeForm('form')
form1.addField(var='FORM_TYPE', ftype='hidden', value='form_1')