'Test glance version set by arg to GlanceClientWrapper'

@mock.patch('cinder.image.glance.glanceclient.Client')
def test_glance_version_by_arg(self, _mockglanceclient):

    ctx = mock.MagicMock()
    glance.GlanceClientWrapper(ctx, 'fake_host', 9292, version=1)
    self.assertEqual('1', _mockglanceclient.call_args[0][0])
    glance.GlanceClientWrapper(ctx, 'fake_host', 9292, version=2)
    self.assertEqual('2', _mockglanceclient.call_args[0][0])
