@mock.patch.object(rest_client.KioxiaProvisioner, 'expand_volume')
def test_extend_volume_failure(self, mock_expand_volume):
    testvol = _stub_volume()
    mock_expand_volume.return_value = fail_prov_response
    new_size = (VOL_SIZE + 2)
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.extend_volume, testvol, new_size)
@mock.patch.object(rest_client.KioxiaProvisioner, 'expand_volume')
def test_extend_volume_failure(self, mock_expand_volume):
    testvol = _stub_volume()
    mock_expand_volume.return_value = fail_prov_response
    new_size = (VOL_SIZE + 2)
    self.assertRaises(exception.VolumeBackendAPIException, self.driver.extend_volume, testvol, new_size)