d9ecc4af64af7bc2d4d7d5b7c1b1cd60991d3f54,tests/helpers/test_event.py,TestEventHelpers,test_periodic_task_day,#TestEventHelpers#,307

Before Change


        Test periodic tasks per day.
        specific_runs = []

        track_utc_time_change(
            self.hass, lambda x: specific_runs.append(1), day="/2")

        self._send_time_changed(datetime(2014, 5, 2, 0, 0, 0))
        self.hass.pool.block_till_done()
        self.assertEqual(1, len(specific_runs))

After Change


        Test periodic tasks per day.
        specific_runs = []

        unsub = track_utc_time_change(
            self.hass, lambda x: specific_runs.append(1), day="/2")

        self._send_time_changed(datetime(2014, 5, 2, 0, 0, 0))
        self.hass.pool.block_till_done()
        self.assertEqual(1, len(specific_runs))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: d9ecc4af64af7bc2d4d7d5b7c1b1cd60991d3f54
Time: 2016-08-25
Author: paulus@paulusschoutsen.nl
File Name: tests/helpers/test_event.py
Class Name: TestEventHelpers
Method Name: test_periodic_task_day


Project Name: home-assistant/home-assistant
Commit Name: e9813b219e240fcbd67ff6b6e101333ebfe5a35a
Time: 2016-09-04
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/helpers/entity_component.py
Class Name: EntityPlatform
Method Name: add_entities


Project Name: home-assistant/home-assistant
Commit Name: d9ecc4af64af7bc2d4d7d5b7c1b1cd60991d3f54
Time: 2016-08-25
Author: paulus@paulusschoutsen.nl
File Name: tests/helpers/test_event.py
Class Name: TestEventHelpers
Method Name: test_periodic_task_year


Project Name: home-assistant/home-assistant
Commit Name: d9ecc4af64af7bc2d4d7d5b7c1b1cd60991d3f54
Time: 2016-08-25
Author: paulus@paulusschoutsen.nl
File Name: tests/helpers/test_event.py
Class Name: TestEventHelpers
Method Name: test_track_time_change


Project Name: home-assistant/home-assistant
Commit Name: d9ecc4af64af7bc2d4d7d5b7c1b1cd60991d3f54
Time: 2016-08-25
Author: paulus@paulusschoutsen.nl
File Name: tests/helpers/test_event.py
Class Name: TestEventHelpers
Method Name: test_periodic_task_hour


Project Name: home-assistant/home-assistant
Commit Name: d9ecc4af64af7bc2d4d7d5b7c1b1cd60991d3f54
Time: 2016-08-25
Author: paulus@paulusschoutsen.nl
File Name: tests/helpers/test_event.py
Class Name: TestEventHelpers
Method Name: test_periodic_task_minute