def test_use_vaultlocker_not_vault(self, _config, _cmp_pkgrevno): _test_data = { 'osd-encrypt': True, 'osd-encrypt-keymanager': 'ceph', } _config.side_effect = lambda x: _test_data.get(x) _cmp_pkgrevno.return_value = 1 self.assertFalse(ceph_hooks.use_vaultlocker())