7b40a641eceef014daee5a4a631dade08566c913,tests/components/binary_sensor/test_template.py,TestBinarySensorTemplate,test_setup_invalid_missing_template,#TestBinarySensorTemplate#,84
Before Change
def test_setup_invalid_missing_template(self):
"Test setup with invalid and missing template.
result = bootstrap.setup_component(self.hass, "sensor", {
"sensor": {
"platform": "template",
"sensors": {
"test": {
"sensor_class": "motion",
},
}
}
})
self.assertFalse(result)
def test_attributes(self):
"Test the attributes.
After Change
def test_setup_invalid_missing_template(self):
"Test setup with invalid and missing template.
with assert_setup_component(0):
assert bootstrap.setup_component(self.hass, "sensor", {
"sensor": {
"platform": "template",
"sensors": {
"test": {
"sensor_class": "motion",
},
}
}
})
def test_attributes(self):
"Test the attributes.
vs = template.BinarySensorTemplate(
self.hass, "parent", "Parent", "motion",
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: home-assistant/home-assistant
Commit Name: 7b40a641eceef014daee5a4a631dade08566c913
Time: 2016-10-08
Author: kellerza@gmail.com
File Name: tests/components/binary_sensor/test_template.py
Class Name: TestBinarySensorTemplate
Method Name: test_setup_invalid_missing_template
Project Name: home-assistant/home-assistant
Commit Name: 7b40a641eceef014daee5a4a631dade08566c913
Time: 2016-10-08
Author: kellerza@gmail.com
File Name: tests/components/binary_sensor/test_template.py
Class Name: TestBinarySensorTemplate
Method Name: test_setup_invalid_sensor_class
Project Name: home-assistant/home-assistant
Commit Name: 7b40a641eceef014daee5a4a631dade08566c913
Time: 2016-10-08
Author: kellerza@gmail.com
File Name: tests/components/binary_sensor/test_template.py
Class Name: TestBinarySensorTemplate
Method Name: test_setup_invalid_device
Project Name: home-assistant/home-assistant
Commit Name: 7b40a641eceef014daee5a4a631dade08566c913
Time: 2016-10-08
Author: kellerza@gmail.com
File Name: tests/components/binary_sensor/test_template.py
Class Name: TestBinarySensorTemplate
Method Name: test_setup_no_sensors