c70722dbaef64cb00dbf6793d84b5530856a35cb,tests/components/test_updater.py,TestUpdater,test_no_entity_on_same_version,#TestUpdater#Any#,43
Before Change
mock_get_newest_version.return_value = NEW_VERSION
fire_time_changed(
self.hass, dt_util.utcnow().replace(hour=0, minute=0, second=0))
self.hass.block_till_done()
After Change
with assert_setup_component(1) as config:
assert setup_component(
self.hass, updater.DOMAIN, {updater.DOMAIN: {}})
_dt = datetime.now() + timedelta(hours=1)
assert config["updater"] == {"opt_out": False}
self.assertIsNone(self.hass.states.get(updater.ENTITY_ID))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
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
Project Name: comic/grand-challenge.org
Commit Name: ecf5661910bd54d50e99e0d8359d1f70f8b0f42f
Time: 2017-11-16
Author: jamesmeakin@gmail.com
File Name: app/comicmodels/admin.py
Class Name: RegistrationRequestAdmin
Method Name: process_rejection
Project Name: comic/grand-challenge.org
Commit Name: ecf5661910bd54d50e99e0d8359d1f70f8b0f42f
Time: 2017-11-16
Author: jamesmeakin@gmail.com
File Name: app/comicmodels/admin.py
Class Name: RegistrationRequestAdmin
Method Name: process_acceptance