'Test managing volume to return \'creating\' status in V3 API.'

@mock.patch('cinder.volume.api.API.manage_existing', wraps=api_manage_new)
def test_manage_volume_with_creating_status_in_v3(self, mock_api_manage):

    body = {'volume': {'host': 'host_ok', 'ref': 'fake_ref'}}
    res = self._get_resp_post_v3(body, '3.15')
    self.assertEqual(http_client.ACCEPTED, res.status_int)
    self.assertEqual(1, mock_api_manage.call_count)
    self.assertEqual('creating', jsonutils.loads(res.body)['volume']['status'])
