272539105f949ac28e37adac0474ac28d65256e0,tests/components/camera/test_local_file.py,TestLocalCamera,test_loading_file,#TestLocalCamera#,27

Before Change


        Test that it loads image from disk.
        self.hass.wsgi = mock.MagicMock()

        with NamedTemporaryFile() as fptr:
            fptr.write("hello".encode("utf-8"))
            fptr.flush()

            assert setup_component(self.hass, "camera", {
                "camera": {
                    "name": "config_test",

After Change


        self.hass.wsgi = mock.MagicMock()

        with mock.patch("os.path.isfile", mock.Mock(return_value=True)), \
                mock.patch("os.access", mock.Mock(return_value=True)):
            assert setup_component(self.hass, "camera", {
                "camera": {
                    "name": "config_test",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/components/camera/test_local_file.py
Class Name: TestLocalCamera
Method Name: test_loading_file


Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/components/camera/test_local_file.py
Class Name: TestLocalCamera
Method Name: test_loading_file


Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/test_bootstrap.py
Class Name: TestBootstrap
Method Name: test_from_config_file


Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/components/camera/test_local_file.py
Class Name: TestLocalCamera
Method Name: test_file_not_readable