8ceab5d4ba45335466de29e415c45c6266433e4e,tests/test_bootstrap.py,TestBootstrap,test_remove_lib_on_upgrade,#TestBootstrap#,45

Before Change


            with open(check_file, "w"):
                pass

            hass = get_test_home_assistant()
            hass.config.config_dir = config_dir

            self.assertTrue(os.path.isfile(check_file))
            bootstrap.process_ha_config_upgrade(hass)
            self.assertFalse(os.path.isfile(check_file))
            hass.stop()

    def test_not_remove_lib_if_not_upgrade(self):
        Test removal of library with no upgrade.
        with tempfile.TemporaryDirectory() as config_dir:

After Change



            assert os.path.isfile(check_file)
            bootstrap.process_ha_config_upgrade(self.hass)
            assert not os.path.isfile(check_file)

    def test_not_remove_lib_if_not_upgrade(self):
        Test removal of library with no upgrade.
        with tempfile.TemporaryDirectory() as config_dir:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: 8ceab5d4ba45335466de29e415c45c6266433e4e
Time: 2016-03-29
Author: paulus@paulusschoutsen.nl
File Name: tests/test_bootstrap.py
Class Name: TestBootstrap
Method Name: test_remove_lib_on_upgrade


Project Name: home-assistant/home-assistant
Commit Name: 8ceab5d4ba45335466de29e415c45c6266433e4e
Time: 2016-03-29
Author: paulus@paulusschoutsen.nl
File Name: tests/test_bootstrap.py
Class Name: TestBootstrap
Method Name: test_handle_setup_circular_dependency


Project Name: home-assistant/home-assistant
Commit Name: 8ceab5d4ba45335466de29e415c45c6266433e4e
Time: 2016-03-29
Author: paulus@paulusschoutsen.nl
File Name: tests/test_bootstrap.py
Class Name: TestBootstrap
Method Name: test_not_remove_lib_if_not_upgrade


Project Name: home-assistant/home-assistant
Commit Name: 8ceab5d4ba45335466de29e415c45c6266433e4e
Time: 2016-03-29
Author: paulus@paulusschoutsen.nl
File Name: tests/test_bootstrap.py
Class Name: TestBootstrap
Method Name: test_entity_customization