'Call ``POST /projects/{project_id} with unsafe names``.'

def test_update_project_unsafe(self):

    unsafe_name = 'i    am    not    /    safe'
    self.config_fixture.config(group='resource', project_name_url_safe='off')
    ref = unit.new_project_ref(name=unsafe_name, domain_id=self.domain_id, parent_id=self.project['parent_id'])
    del ref['id']
    self.patch(('/projects/%(project_id)s' % {'project_id': self.project_id}), body={'project': ref})
    unsafe_name = 'i    am    still    not    /    safe'
    for config_setting in ['new', 'strict']:
        self.config_fixture.config(group='resource', project_name_url_safe=config_setting)
        ref = unit.new_project_ref(name=unsafe_name, domain_id=self.domain_id, parent_id=self.project['parent_id'])
        del ref['id']
        self.patch(('/projects/%(project_id)s' % {'project_id': self.project_id}), body={'project': ref}, expected_status=http_client.BAD_REQUEST)
