'Test update volume using oslo_versionedobject.'

@mock.patch('cinder.db.volume_update')
def test_update_with_ovo(self, volume_update):

    volume = tests_utils.create_volume(self.context, **self.volume_params)
    updates = {'display_name': 'foobbar'}
    self.volume_api.update(self.context, volume, updates)
    volume_update.assert_called_once_with(self.context, volume.id, updates)
    self.assertEqual('foobbar', volume.display_name)
