def METHOD_NAME(self):
    self.test_config["foo_model"].update({"allowed_missing_files": ["foo*"]})
    self.modifed_config = esm_runscripts.filelists.filter_allowed_missing_files(
        self.test_config
    )
    self.assertNotIn(
        "/some/long/directory/in/pool/foo.dat",
        self.test_config["general"]["files_missing_when_preparing_run"],
    )
    self.assertIn(
        "/some/long/directory/in/pool/foo.dat",
        self.test_config["general"]["allowed_missing_files"],
    )