def METHOD_NAME(not_safe, mocker):
    """Ensure unsafe directories are not mounted"""
    with pytest.raises(ConfigurationError):
        bc = BaseConfig()
        mocker.patch("os.path.exists", return_value=True)
        bc._update_volume_mount_paths(
            args_list=[], src_mount_path=not_safe, dst_mount_path=None
        )