272539105f949ac28e37adac0474ac28d65256e0,tests/components/notify/test_demo.py,TestNotifyDemo,test_calling_notify_from_script_loaded_from_yaml_with_title,#TestNotifyDemo#,100
Before Change
Test 123 {{ 2 + 2 }}
with tempfile.NamedTemporaryFile() as fp:
fp.write(yaml_conf.encode("utf-8"))
fp.flush()
conf = yaml.load_yaml(fp.name)
script.call_from_config(self.hass, conf)
self.hass.pool.block_till_done()
self.assertTrue(len(self.events) == 1)
assert {
After Change
def test_calling_notify_from_script_loaded_from_yaml_with_title(self):
Test if we can call a notify from a script.
conf = {
"service": "notify.notify",
"data": {
"data": {
"push": {
"sound":
"US-EN-Morgan-Freeman-Roommate-Is-Arriving.wav"
}
}
},
"data_template": {
"message": "Test 123 {{ 2 + 2 }}\n",
"title": "Test"
}
}
script.call_from_config(self.hass, conf)
self.hass.pool.block_till_done()
self.assertTrue(len(self.events) == 1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/components/notify/test_demo.py
Class Name: TestNotifyDemo
Method Name: test_calling_notify_from_script_loaded_from_yaml_with_title
Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/components/notify/test_demo.py
Class Name: TestNotifyDemo
Method Name: test_calling_notify_from_script_loaded_from_yaml_without_title
Project Name: home-assistant/home-assistant
Commit Name: 272539105f949ac28e37adac0474ac28d65256e0
Time: 2016-10-17
Author: rob.capellini@gmail.com
File Name: tests/components/notify/test_demo.py
Class Name: TestNotifyDemo
Method Name: test_calling_notify_from_script_loaded_from_yaml_with_title
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