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()
        test_throttle2()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

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/components/test_history.py
Class Name: TestComponentHistory
Method Name: test_state_changes_during_period


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


Project Name: comic/grand-challenge.org
Commit Name: 8b5f1336d16b7713cff4af610278d8a68a1cee75
Time: 2017-12-07
Author: pkcakeout@gmail.com
File Name: app/tests/evaluation_tests/test_widgets_uploaded_file.py
Class Name:
Method Name: test_file_cleanup