'Assert the Domain\'s name and id do not match the reserved keyword.
Note that the reserved keyword is defined in the configuration file,
by default, it is \'Federated\', it is also case insensitive.
If config\'s option is empty the default hardcoded value \'Federated\'
will be used.
:raise AssertionError: if domain named match the value in the config.'

def assert_domain_not_federated(self, domain_id, domain):

    federated_domain = CONF.federation.federated_domain_name.lower()
    if (domain.get('name') and (domain['name'].lower() == federated_domain)):
        raise AssertionError((_('Domain    cannot    be    named    %s') % domain['name']))
    if (domain_id.lower() == federated_domain):
        raise AssertionError((_('Domain    cannot    have    ID    %s') % domain_id))
