def METHOD_NAME(self):
    """Test that citation information is collected for all core modules
    and written to the output file whose path does not exist"""
    home_dir = os.path.expanduser("~")
    module = SimpleModule(
        "g.citation",
        flags="ad",
        output=os.path.join(
            home_dir,
            "non_exist_dir",
            "non_exist_output_file.txt",
        ),
    )
    self.assertModuleFail(module)
    self.assertTrue(module.outputs.stderr)
    self.assertIn("No such file or directory", module.outputs.stderr)