'Testing multiple message/pubsub_event/items/item'

def testItemsEvent(self):

    msg = self.Message()
    item = pubsub.EventItem()
    item2 = pubsub.EventItem()
    pl = ET.Element('{http://netflint.net/protocol/test}test', {'failed': '3', 'passed': '24'})
    pl2 = ET.Element('{http://netflint.net/protocol/test-other}test', {'total': '27', 'failed': '3'})
    item2['payload'] = pl2
    item['payload'] = pl
    item['id'] = 'abc123'
    item2['id'] = '123abc'
    msg['pubsub_event']['items'].append(item)
    msg['pubsub_event']['items'].append(item2)
    msg['pubsub_event']['items']['node'] = 'cheese'
    msg['type'] = 'normal'
    self.check(msg, '\n                                        <message    type="normal">\n                                                <event    xmlns="http://jabber.org/protocol/pubsub#event">\n                                                        <items    node="cheese">\n                                                                <item    id="abc123">\n                                                                        <test    xmlns="http://netflint.net/protocol/test"    failed="3"    passed="24"    />\n                                                                </item>\n                                                                <item    id="123abc">\n                                                                        <test    xmlns="http://netflint.net/protocol/test-other"    failed="3"    total="27"    />\n                                                                </item>\n                                                        </items>\n                                                </event>\n                                        </message>')
