'Call ``POST /domains with unsafe names``.'

def test_create_domain_unsafe(self):

    unsafe_name = 'i    am    not    /    safe'
    self.config_fixture.config(group='resource', domain_name_url_safe='off')
    ref = unit.new_domain_ref(name=unsafe_name)
    self.post('/domains', body={'domain': ref})
    for config_setting in ['new', 'strict']:
        self.config_fixture.config(group='resource', domain_name_url_safe=config_setting)
        ref = unit.new_domain_ref(name=unsafe_name)
        self.post('/domains', body={'domain': ref}, expected_status=http_client.BAD_REQUEST)
