def METHOD_NAME(self):
    """Tests dumping unrestricted spin data.
    PySCF cannot handle this themselves, so we need to rely on a custom FCIDUMP file, load it,
    dump it again, and make sure it did not change."""
    path = self.get_resource_path("test_fcidump_oh.fcidump", "second_q/formats/fcidump")
    fcidump = FCIDump.from_file(path)
    with tempfile.TemporaryDirectory() as dump_dir:
        dump_file = Path(dump_dir) / "fcidump"
        fcidump.to_file(dump_file)
        with open(path, "r", encoding="utf-8") as reference:
            with open(dump_file, "r", encoding="utf-8") as result:
                for ref, res in zip(reference.readlines(), result.readlines()):
                    self.assertEqual(ref.strip(), res.strip())