def test_subscribe_to_time_changes(self):
        time_options_manager = TimeSettingsManager()
        result = {"result": "time"}

        def time_change_callback(time, minutes, seconds,origin_station_name):
            result["result"] += " " + time

        time_options_manager.subscribe_to_timechange(time_change_callback)

        time_options_manager.increment_seconds()

        self.assertEqual(result["result"], "time 10:00 10:15")
dataset/ETHPy150Open MobProgramming/MobTimer.Python/tests/Infrastructure/TimeOptionsManager/TestsTimeOptionsManager.py/TestsTimeOptionsManager.test_subscribe_to_time_changes/original