Add test for new template validation logic

This commit is contained in:
Paulus Schoutsen committed 2016-08-09 21:09:56 -07:00
1 parent 253628da11
commit f904d06c9a
1 file changed
+1 -1
+1 -1
View File
@@ -253,7 +253,7 @@ def test_template():
schema = vol.Schema(cv.template)
for value in (
None, '{{ partial_print }', '{% if True %}Hello'
None, '{{ partial_print }', '{% if True %}Hello', {'dict': 'isbad'}
):
with pytest.raises(vol.MultipleInvalid):
schema(value)