b1c0cabe6c48ffff7fda3403ec3f1ca919fec6e2,tests/components/light/test_mqtt_template.py,TestLightMQTTTemplate,test_transition,#TestLightMQTTTemplate#,323

Before Change


        self.assertEqual(False, self.mock_publish.mock_calls[-2][1][3])

        // check the payload
        payload = self.mock_publish.mock_calls[-2][1][1]
        self.assertEqual("off,4", payload)

    def test_invalid_values(self): \
            // pylint: disable=invalid-name

After Change



        self.mock_publish.async_publish.assert_called_once_with(
            "test_light_rgb/set", "on,10", 0, False)
        self.mock_publish.async_publish.reset_mock()

        // transition off
        light.turn_off(self.hass, "light.test", transition=4)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: home-assistant/home-assistant
Commit Name: b1c0cabe6c48ffff7fda3403ec3f1ca919fec6e2
Time: 2018-02-11
Author: otto@otto-winter.com
File Name: tests/components/light/test_mqtt_template.py
Class Name: TestLightMQTTTemplate
Method Name: test_transition


Project Name: home-assistant/home-assistant
Commit Name: b1c0cabe6c48ffff7fda3403ec3f1ca919fec6e2
Time: 2018-02-11
Author: otto@otto-winter.com
File Name: tests/components/light/test_mqtt_template.py
Class Name: TestLightMQTTTemplate
Method Name: test_optimistic


Project Name: home-assistant/home-assistant
Commit Name: b1c0cabe6c48ffff7fda3403ec3f1ca919fec6e2
Time: 2018-02-11
Author: otto@otto-winter.com
File Name: tests/components/light/test_mqtt_template.py
Class Name: TestLightMQTTTemplate
Method Name: test_flash