

@mock.patch('rally.plugins.openstack.wrappers.cinder.LOG')
def test_wrap_wrong_version(self, mock_log):
    client = mock.MagicMock()
    client.choose_version.return_value = 'dummy'
    client.assertRaises(exceptions.InvalidArgumentsException, cinder_wrapper.wrap, client, mock.Mock())
    self.assertTrue(mock_log.warning.mock_called)

dataset/ETHPy150Open openstack/rally/tests/unit/plugins/openstack/wrappers/test_cinder.py CinderWrapperTestCase.test_wrap_wrong_version/VarMisuse@36/60 `self`->`client`