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))
Italian Trulli
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: cuemacro/finmarketpy
Commit Name: 03b0c1d3f0d615464ae99d5566aa95b1cf459d9a
Time: 2016-02-29
Author: saeedamen@hotmail.com
File Name: pythalesians/market/loaders/lowlevel/bbg/loaderbbg.py
Class Name: LoaderBBG
Method Name: get_reference_data


Project Name: home-assistant/home-assistant
Commit Name: 8a14f46595b0f80f1eacc7500e70f4941a0aa913
Time: 2015-06-14
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/logbook.py
Class Name:
Method Name: _handle_get_logbook