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

def testGetIdentitiesNoLang(self):

    iq = self.Iq()
    iq['disco_info'].add_identity('client', 'pc')
    iq['disco_info'].add_identity('client', 'pc', lang='no')
    iq['disco_info'].add_identity('client', 'pc', lang='en')
    iq['disco_info'].add_identity('client', 'pc', lang='fr')
    expected = set([('client', 'pc', None, None), ('client', 'pc', 'no', None), ('client', 'pc', 'en', None), ('client', 'pc', 'fr', None)])
    self.failUnless((iq['disco_info']['identities'] == expected), ('Identities    do    not    match:\n%s\n%s' % (expected, iq['disco_info']['identities'])))
