

@ddt.data({
    'version': '1',
    'expected_class': cinder_wrapper.CinderV1Wrapper,
}, {
    'version': '2',
    'expected_class': cinder_wrapper.CinderV2Wrapper,
})
@ddt.unpack
def test_wrap(self, version, expected_class):
    client = mock.MagicMock()
    client.choose_version.return_value = version
    self.assertIsInstance(cinder_wrapper.wrap(self, mock.Mock()), expected_class)

dataset/ETHPy150Open openstack/rally/tests/unit/plugins/openstack/wrappers/test_cinder.py CinderWrapperTestCase.test_wrap/VarMisuse@81/116 `client`->`self`