'Test glance version set by arg to GlanceClientWrapper'

@mock.patch('cinder.image.glance.glanceclient.Client')
@mock.patch('cinder.image.glance.get_api_servers', return_value=itertools.cycle([(False, 'localhost:9292')]))
def test_call_glance_version_by_arg(self, api_servers, _mockglanceclient):

    glance_wrapper = glance.GlanceClientWrapper()
    ctx = mock.MagicMock()
    glance_wrapper.call(ctx, 'method', version=2)
    self.assertEqual('2', _mockglanceclient.call_args[0][0])
