Add test for new template validation logic

This commit is contained in:
Paulus Schoutsen 2016-08-09 21:09:56 -07:00
parent 253628da11
commit f904d06c9a

View File

@ -253,7 +253,7 @@ def test_template():
schema = vol.Schema(cv.template) schema = vol.Schema(cv.template)
for value in ( for value in (
None, '{{ partial_print }', '{% if True %}Hello' None, '{{ partial_print }', '{% if True %}Hello', {'dict': 'isbad'}
): ):
with pytest.raises(vol.MultipleInvalid): with pytest.raises(vol.MultipleInvalid):
schema(value) schema(value)