'Ensure we output templates if contain error.'

def test_create_template_error(self):

    assert (len(self.hass.states.entity_ids(pn.DOMAIN)) == 0)
    pn.create(self.hass, '{{    message    +    1    }}', '{{    title    +    1    }}')
    self.hass.block_till_done()
    entity_ids = self.hass.states.entity_ids(pn.DOMAIN)
    assert (len(entity_ids) == 1)
    state = self.hass.states.get(entity_ids[0])
    assert (state.state == '{{    message    +    1    }}')
    assert (state.attributes.get('title') == '{{    title    +    1    }}')
