'Test running a command with no steps.'

def testZeroStepCommand(self):

    def handle_command(iq, session):
        form = self.xmpp['xep_0004'].makeForm(ftype='result')
        form.addField(var='foo', ftype='text-single', label='Foo', value='bar')
        session['payload'] = form
        session['next'] = None
        session['has_next'] = False
        return session
    self.xmpp['xep_0050'].add_command('tester@localhost', 'foo', 'Do    Foo', handle_command)
    self.recv('\n                                        <iq    id="11"    type="set"    to="tester@localhost"    from="foo@bar">\n                                                <command    xmlns="http://jabber.org/protocol/commands"\n                                                                                    node="foo"\n                                                                                    action="execute"    />\n                                        </iq>\n                                ')
    self.send('\n                                        <iq    id="11"    type="result"    to="foo@bar">\n                                                <command    xmlns="http://jabber.org/protocol/commands"\n                                                                                    node="foo"\n                                                                                    status="completed"\n                                                                                    sessionid="_sessionid_">\n                                                        <x    xmlns="jabber:x:data"    type="result">\n                                                                <field    var="foo"    label="Foo"    type="text-single">\n                                                                        <value>bar</value>\n                                                                </field>\n                                                        </x>\n                                                </command>\n                                        </iq>\n                                ')
