'Test publishing a single item.'

def testPublishSingle(self):

    payload = AtomEntry()
    payload['title'] = 'Test'
    register_stanza_plugin(self.xmpp['xep_0060'].stanza.Item, AtomEntry)
    self.xmpp['xep_0060'].publish('pubsub.example.com', 'somenode', id='id42', payload=payload, block=False)
    self.send('\n                                        <iq    type="set"    id="1"    to="pubsub.example.com">\n                                                <pubsub    xmlns="http://jabber.org/protocol/pubsub">\n                                                        <publish    node="somenode">\n                                                                <item    id="id42">\n                                                                        <entry    xmlns="http://www.w3.org/2005/Atom">\n                                                                                <title>Test</title>\n                                                                        </entry>\n                                                                </item>\n                                                        </publish>\n                                                </pubsub>\n                                        </iq>\n                                ', use_values=False)
