def add(self, translations, merge=True):
        domain = getattr(translations, 'domain', self.DEFAULT_DOMAIN)
        if merge and domain == self.domain:
            return self.merge(translations)

        existing = self._domains.get(domain)
        if merge and existing is not None:
            existing.merge(translations)
        else:
            translations.add_fallback(self)
            self._domains[domain] = translations

        return self
Test listing of identities after linking and unlinking a new identity.
dataset/ETHPy150Open lad1337/XDM/site-packages/babel/support.py/Translations.add--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/list_identities_test.py/ListIdentitiesTestCase.testListIdentities