def METHOD_NAME(self):
    source = Path("./some/relative/path")
    dest = Path("./some/other/relative/path")
    tool = source / "faketool"
    with patch.object(mozpack.pkg.subprocess, "check_call", lambda: None):
        with self.assertRaises(Exception):
            xar_package_folder(source, dest, tool)