def ceph_broken(): service = service_name() delete_keyring(service=service) CONFIGS.write_all() remove_alternative(os.path.basename(CEPH_CONF), ceph_config_file())
def test_remove_alternative(self, _check): alternatives.remove_alternative(NAME, SOURCE) _check.assert_called_with( ['update-alternatives', '--remove', NAME, SOURCE] )