b1c0cabe6c48ffff7fda3403ec3f1ca919fec6e2,tests/components/alarm_control_panel/test_manual_mqtt.py,TestAlarmControlPanelManualMqtt,test_state_changes_are_published_to_mqtt,#TestAlarmControlPanelManualMqtt#,1383

Before Change


                    "dt_util.utcnow"), return_value=future):
            fire_time_changed(self.hass, future)
            self.hass.block_till_done()
        self.assertEqual(("alarm/state", STATE_ALARM_ARMED_NIGHT, 0, True),
                         self.mock_publish.mock_calls[-2][1])

        // Disarm
        alarm_control_panel.alarm_disarm(self.hass)
        self.hass.block_till_done()

After Change


            self.hass.block_till_done()
        self.mock_publish.async_publish.assert_called_once_with(
            "alarm/state", STATE_ALARM_ARMED_NIGHT, 0, True)
        self.mock_publish.async_publish.reset_mock()

        // Disarm
        alarm_control_panel.alarm_disarm(self.hass)
        self.hass.block_till_done()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: b1c0cabe6c48ffff7fda3403ec3f1ca919fec6e2
Time: 2018-02-11
Author: otto@otto-winter.com
File Name: tests/components/alarm_control_panel/test_manual_mqtt.py
Class Name: TestAlarmControlPanelManualMqtt
Method Name: test_state_changes_are_published_to_mqtt


Project Name: home-assistant/home-assistant
Commit Name: b1c0cabe6c48ffff7fda3403ec3f1ca919fec6e2
Time: 2018-02-11
Author: otto@otto-winter.com
File Name: tests/components/vacuum/test_mqtt.py
Class Name: TestVacuumMQTT
Method Name: test_all_commands


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.py
Class Name: TestLightMQTT
Method Name: test_on_command_brightness


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.py
Class Name: TestLightMQTT
Method Name: test_sending_mqtt_commands_and_optimistic