def METHOD_NAME(self, caplog):
    pd_series = B0.convert_from_json_to_special_types(
        self.test_dict_series, time_index=self.ti[:3]
    )
    # collect warning message
    log_msg = caplog.record_tuples[0]
    # check it is a warning
    assert log_msg[1] == 30
    assert (
        "The time index inferred from simulation_settings is shorter as the timeserie under the field series"
        in log_msg[2]
    )
    assert (pd_series["series"].values == self.test_result_series.values).all()