'Passing an unencrypted password should raise an error'

@mock.patch('cinder.volume.drivers.ibm.ibm_storage.xiv_proxy.socket.getfqdn', new=mock.MagicMock(return_value='test_hostname'))
def test_setup_should_fail_if_password_is_not_encrypted(self):

    storage_info = self.default_storage_info.copy()
    storage_info['password'] = 'WTF32'
    p = self.proxy(storage_info, mock.MagicMock(), test_mock.cinder.exception)
    self.assertRaises(test_mock.cinder.exception.InvalidParameterValue, p.setup, {})
