cfc23b0091d55b53eef9654fe0e9134ac12b8c38,tests/util/test_init.py,TestUtil,test_throttle,#TestUtil#,169

Before Change


        self.assertEqual(3, len(calls1))
        self.assertEqual(2, len(calls2))

        time.sleep(.5)

        test_throttle1()
        test_throttle2()

After Change


        def test_throttle2():
            calls2.append(1)

        now = dt_util.utcnow()
        plus3 = now + timedelta(seconds=3)
        plus5 = plus3 + timedelta(seconds=2)

        // Call first time and ensure methods got called
        test_throttle1()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: home-assistant/home-assistant
Commit Name: cfc23b0091d55b53eef9654fe0e9134ac12b8c38
Time: 2015-09-12
Author: paulus@paulusschoutsen.nl
File Name: tests/util/test_init.py
Class Name: TestUtil
Method Name: test_throttle


Project Name: home-assistant/home-assistant
Commit Name: cfc23b0091d55b53eef9654fe0e9134ac12b8c38
Time: 2015-09-12
Author: paulus@paulusschoutsen.nl
File Name: tests/test_core.py
Class Name: TestStateMachine
Method Name: test_last_changed_not_updated_on_same_state


Project Name: home-assistant/home-assistant
Commit Name: f3c95adaca4dd7bccb6892759508c5930bc560bf
Time: 2016-02-20
Author: stefan.jonasson@sitedirect.se
File Name: tests/components/automation/test_state.py
Class Name: TestAutomationState
Method Name: test_if_fires_on_for_condition