'Test manage volume failure due to disabled service.'

@mock.patch('cinder.objects.service.Service.is_up', return_value=True, new_callable=mock.PropertyMock)
def test_manage_volume_disabled(self, mock_is_up):

    body = {'volume': {'host': 'host_disabled', 'ref': 'fake_ref'}}
    res = self._get_resp_post(body)
    self.assertEqual(http_client.BAD_REQUEST, res.status_int, res)
    self.assertEqual(exception.ServiceUnavailable.message, res.json['badRequest']['message'])
    mock_is_up.assert_not_called()
