'Test correct failure when host having no volume service on it.'

@mock.patch('cinder.objects.Service.get_by_args')
def test_manage_volume_service_not_found_on_host(self, mock_service):

    body = {'volume': {'host': 'host_ok', 'ref': 'fake_ref'}}
    mock_service.side_effect = exception.ServiceNotFound(service_id='cinder-volume', host='host_ok')
    res = self._get_resp_post(body)
    self.assertEqual(http_client.BAD_REQUEST, res.status_int)
