def METHOD_NAME(tmp_path: Path):
    exp = pd.DataFrame(
        {
            0: ["DE", "", "", "", ""],
            1: ["hourly", "", "index", 1, 2],
            2: ["", "", "day", "01", "01"],
            3: ["", "", "month", "JAN", "JAN"],
            4: ["", "", "hour", "00:00", "01:00"],
        }
    )
    index = pd.Index(["01/01 00:00", "01/01 01:00"])
    serializer = HourlyMatrixSerializer(area="de")
    res = serializer.build_date(index)
    assert exp.values.tolist() == res.values.tolist()