def METHOD_NAME(set_configdir):
    """Tests if an error is raised when the package can"t be found."""
    cfg = config("bad_package.yaml")
    with pytest.raises(ModuleNotFoundError):
        cfg.createConfig()