Add test for new template validation logic

pull/2776/head
Paulus Schoutsen 2016-08-09 21:09:56 -07:00
parent 253628da11
commit f904d06c9a
1 changed files with 1 additions and 1 deletions

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)