307514e3a7115c1ce1eb3b2a343607fa5688b8bb,tests/components/notify/test_apns.py,TestApns,test_send_with_state,#TestApns#Any#,314

Before Change


            State("device_tracker.tracking456", None),
            State("device_tracker.tracking456", "home"))

        self.hass.block_till_done()

        notify_service.send_message(message="Hello", target="home")

        self.assertTrue(send.called)

After Change


        Test updating an existing device.
        send = mock_client.return_value.send_notification

        yaml_file = {
            1234: {
                "name": "test device 1",
                "tracking_device_id": "tracking123",
            },
            5678: {
                "name": "test device 2",
                "tracking_device_id": "tracking456",
            },
        }

        with patch(
            "homeassistant.components.notify.apns.load_yaml_config_file",
                Mock(return_value=yaml_file)), \
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: 307514e3a7115c1ce1eb3b2a343607fa5688b8bb
Time: 2017-03-04
Author: paulus@paulusschoutsen.nl
File Name: tests/components/notify/test_apns.py
Class Name: TestApns
Method Name: test_send_with_state


Project Name: home-assistant/home-assistant
Commit Name: 307514e3a7115c1ce1eb3b2a343607fa5688b8bb
Time: 2017-03-04
Author: paulus@paulusschoutsen.nl
File Name: tests/components/notify/test_apns.py
Class Name: TestApns
Method Name: test_send_with_state


Project Name: home-assistant/home-assistant
Commit Name: 412b5350ce3c16c55c6625e772f560aba351364b
Time: 2016-09-30
Author: paulus@paulusschoutsen.nl
File Name: tests/helpers/test_service.py
Class Name: TestServiceHelpers
Method Name: test_not_mutate_input


Project Name: home-assistant/home-assistant
Commit Name: ef0e018cbbfb6e1048b932cee8ab251cfe6e01d8
Time: 2016-10-01
Author: paulus@paulusschoutsen.nl
File Name: tests/helpers/test_service.py
Class Name: TestServiceHelpers
Method Name: test_not_mutate_input