def METHOD_NAME(self):
    def _create_domain(name):
        domain = Domain(name=name)
        domain.save()
        self.addCleanup(domain.delete)
        return domain._id
    names = ['b', 'a', 'c']
    expected_ids = {name: _create_domain(name) for name in names}
    ids = get_domain_ids_by_names(names)
    self.assertEqual(ids, expected_ids)