cfc23b0091d55b53eef9654fe0e9134ac12b8c38,tests/util/test_init.py,TestUtil,test_throttle,#TestUtil#,169
Before Change
test_throttle2()
self.assertEqual(4, len(calls1))
self.assertEqual(3, len(calls2))
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()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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: c70722dbaef64cb00dbf6793d84b5530856a35cb
Time: 2016-10-20
Author: kellerza@gmail.com
File Name: tests/components/test_updater.py
Class Name: TestUpdater
Method Name: test_new_version_shows_entity_on_start
Project Name: home-assistant/home-assistant
Commit Name: c70722dbaef64cb00dbf6793d84b5530856a35cb
Time: 2016-10-20
Author: kellerza@gmail.com
File Name: tests/components/test_updater.py
Class Name: TestUpdater
Method Name: test_no_entity_on_same_version