def METHOD_NAME(self):
    cd_obj = VaspVolumetricData()
    file_name = os.path.join(
        self.execution_path,
        "../../static/vasp_test_files/chgcar_samples/CHGCAR_no_spin",
    )
    cd_obj.from_file(filename=file_name)
    data_before = cd_obj.total_data.copy()
    cd_obj.write_cube_file(
        filename=os.path.join(self.execution_path, "chgcar.cube")
    )
    cd_obj.read_cube_file(filename=os.path.join(self.execution_path, "chgcar.cube"))
    data_after = cd_obj.total_data.copy()
    self.assertTrue(np.allclose(data_before, data_after))
    n_x, n_y, n_z = (3, 4, 2)
    random_array = np.random.rand(n_x, n_y, n_z)
    rd_obj = VolumetricData()
    rd_obj.atoms = Atoms("H2O", cell=np.eye(3) * 10, positions=np.eye(3))
    rd_obj.total_data = random_array
    rd_obj.write_vasp_volumetric(
        filename=os.path.join(self.execution_path, "random_CHGCAR")
    )
    cd_obj.from_file(filename=os.path.join(self.execution_path, "random_CHGCAR"))
    self.assertTrue(
        np.allclose(
            cd_obj.total_data * cd_obj.atoms.get_volume(), rd_obj.total_data
        )
    )
    file_name = os.path.join(
        self.execution_path,
        "../../static/vasp_test_files/chgcar_samples/CHGCAR_water",
    )
    cd_obj = VaspVolumetricData()
    cd_obj.from_file(file_name)
    data_before = cd_obj.total_data.copy()
    cd_obj.write_cube_file(
        filename=os.path.join(self.execution_path, "chgcar.cube")
    )
    cd_obj.read_cube_file(filename=os.path.join(self.execution_path, "chgcar.cube"))
    self.assertIsNotNone(cd_obj.atoms)
    data_after = cd_obj.total_data.copy()
    self.assertTrue(np.allclose(data_before, data_after))
    data_before = cd_obj.total_data.copy()
    cd_obj.write_vasp_volumetric(
        filename=os.path.join(self.execution_path, "random_CHGCAR")
    )
    cd_obj.from_file(
        filename=os.path.join(self.execution_path, "random_CHGCAR"), normalize=False
    )
    data_after = cd_obj.total_data.copy()
    self.assertTrue(np.allclose(data_before, data_after))