

@mock.patch.object(glance.api, 'glance')
def test_version_get(self, gc):
    request = self.mock_rest_request()
    gc.get_version.return_value = '2.0'
    response = glance.Version().get(request)
    self.assertStatusCode(response, 200)
    self.assertEqual(response.json, {
        'version': '2.0',
    })
    request.get_version.assert_called_once_with()

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/test/api_tests/glance_rest_tests.py ImagesRestTestCase.test_version_get/VarMisuse@82/104 `gc`->`request`