'Test setting the configuration for a node.'

def testSetNodeConfig(self):

    form = self.xmpp['xep_0004'].make_form()
    form.add_field(var='FORM_TYPE', ftype='hidden', value='http://jabber.org/protocol/pubsub#node_config')
    form.add_field(var='pubsub#title', ftype='text-single', value='This    is    awesome!')
    form['type'] = 'submit'
    self.xmpp['xep_0060'].set_node_config('pubsub.example.com', 'somenode', form, block=False)
    self.send('\n                                        <iq    type="set"    id="1"    to="pubsub.example.com">\n                                                <pubsub    xmlns="http://jabber.org/protocol/pubsub#owner">\n                                                        <configure    node="somenode">\n                                                                <x    xmlns="jabber:x:data"    type="submit">\n                                                                        <field    var="FORM_TYPE">\n                                                                                <value>http://jabber.org/protocol/pubsub#node_config</value>\n                                                                        </field>\n                                                                        <field    var="pubsub#title">\n                                                                                <value>This    is    awesome!</value>\n                                                                        </field>\n                                                                </x>\n                                                        </configure>\n                                                </pubsub>\n                                        </iq>\n                                ')
