From a9acff5294fa6c349d113236de07d0e8dae186a1 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Mon, 30 Apr 2012 11:16:10 -0700 Subject: Collapse initial payload to a single stanza instead of a list if only one stanza is found. --- tests/test_stream_xep_0050.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_stream_xep_0050.py') diff --git a/tests/test_stream_xep_0050.py b/tests/test_stream_xep_0050.py index 373bce64..5ad9d6ae 100644 --- a/tests/test_stream_xep_0050.py +++ b/tests/test_stream_xep_0050.py @@ -35,7 +35,7 @@ class TestAdHocCommands(SleekTest): logging.debug(initial) new_payload = TestPayload() if initial: - new_payload['bar'] = 'Received: %s' % initial[0]['bar'] + new_payload['bar'] = 'Received: %s' % initial['bar'] else: new_payload['bar'] = 'Failed' -- cgit v1.2.3