'Test removing all identities from a disco#info stanza.'

def testRemoveAllIdentitiesWithLang(self):

    iq = self.Iq()
    iq['disco_info'].add_identity('client', 'bot', name='Bot')
    iq['disco_info'].add_identity('client', 'bot', lang='no')
    iq['disco_info'].add_identity('client', 'console')
    iq['disco_info'].del_identities(lang='no')
    self.check(iq, '\n                                        <iq>\n                                                <query    xmlns="http://jabber.org/protocol/disco#info">\n                                                        <identity    category="client"    type="bot"    name="Bot"    />\n                                                        <identity    category="client"    type="console"    />\n                                                </query>\n                                        </iq>\n                                ')
