8c303bf48c7191901ebbb983cfacbbd6cd65418d,tests/components/light/test_hue.py,TestSetup,setup_mocks_for_process_lights,#TestSetup#,41

Before Change



    def setup_mocks_for_process_lights(self):
        Set up all mocks for process_lights tests.
        self.mock_bridge = MagicMock()
        self.mock_api = MagicMock()
        self.mock_api.get.return_value = {}
        self.mock_bridge.get_api.return_value = self.mock_api
        self.mock_bridge_type = MagicMock()
        hue_light.setup_data(self.hass)

    def setup_mocks_for_process_groups(self):
        Set up all mocks for process_groups tests.
        self.mock_bridge = MagicMock()
        self.mock_bridge.get_group.return_value = {

After Change


        self.mock_groups = []
        self.mock_add_devices = MagicMock()

    def setup_mocks_for_process_lights(self):
        Set up all mocks for process_lights tests.
        self.mock_bridge = self.create_mock_bridge("host")
        self.mock_api = MagicMock()
        self.mock_api.get.return_value = {}
        self.mock_bridge.get_api.return_value = self.mock_api
        self.mock_bridge_type = MagicMock()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: home-assistant/home-assistant
Commit Name: 8c303bf48c7191901ebbb983cfacbbd6cd65418d
Time: 2017-12-23
Author: andrea.campi@gmail.com
File Name: tests/components/light/test_hue.py
Class Name: TestSetup
Method Name: setup_mocks_for_process_lights


Project Name: home-assistant/home-assistant
Commit Name: 5a469f4d4bc059d8f0b750fa58239f51ec271873
Time: 2018-01-05
Author: andrea.campi@gmail.com
File Name: tests/components/light/test_hue.py
Class Name: TestSetup
Method Name: setup_mocks_for_process_groups


Project Name: home-assistant/home-assistant
Commit Name: 5a469f4d4bc059d8f0b750fa58239f51ec271873
Time: 2018-01-05
Author: andrea.campi@gmail.com
File Name: tests/components/light/test_hue.py
Class Name: TestSetup
Method Name: setup_mocks_for_process_lights


Project Name: home-assistant/home-assistant
Commit Name: 8c303bf48c7191901ebbb983cfacbbd6cd65418d
Time: 2017-12-23
Author: andrea.campi@gmail.com
File Name: tests/components/light/test_hue.py
Class Name: TestSetup
Method Name: setup_mocks_for_process_groups