def METHOD_NAME(self, energy_deviation, expected_response):
    prosumption_interface, time_slot = self._setup_configuration_for_settlement_posting(
        energy_deviation)
    assert prosumption_interface._forecast_measurement_deviation_kWh.get(
        time_slot) is energy_deviation
    assert prosumption_interface.can_post_settlement_offer(
        time_slot) == expected_response