'Test creating an instant node'

def testCreateInstantNode(self):

    t = threading.Thread(name='create_node', target=self.xmpp['xep_0060'].create_node, args=('pubsub.example.com', None))
    t.start()
    self.send('\n                                        <iq    type="set"    id="1"    to="pubsub.example.com">\n                                                <pubsub    xmlns="http://jabber.org/protocol/pubsub">\n                                                        <create    />\n                                                </pubsub>\n                                        </iq>\n                                ')
    self.recv('\n                                        <iq    type="result"    id="1"\n                                                        to="tester@localhost"    from="pubsub.example.com">\n                                                <pubsub    xmlns="http://jabber.org/protocol/pubsub">\n                                                        <create    node="25e3d37dabbab9541f7523321421edc5bfeb2dae"    />\n                                                </pubsub>\n                                        </iq>\n                                ')
    t.join()
