'Test adding multiple items to a disco#items stanza.'

def testAddBatchItems(self):

    iq = self.Iq()
    items = [('user@localhost', 'foo', 'Test'), ('test@localhost', None, None), ('other@localhost', None, 'Other')]
    iq['disco_items']['items'] = items
    self.check(iq, '\n                                        <iq>\n                                                <query    xmlns="http://jabber.org/protocol/disco#items">\n                                                        <item    jid="user@localhost"    node="foo"    name="Test"    />\n                                                        <item    jid="test@localhost"    />\n                                                        <item    jid="other@localhost"    name="Other"    />\n                                                </query>\n                                        </iq>\n                                ')
