tests: add check for indexing to ezt lazy tests

This commit is contained in:
Frédéric Péters 2020-01-21 17:52:50 +01:00
parent 01c624cb29
commit 8f6f8f745f
1 changed files with 3 additions and 0 deletions

View File

@ -1263,6 +1263,9 @@ def test_lazy_ezt_templates(pub, variable_test_data):
tmpl = Template('[is form_var_foo_foo "bar"]HELLO[else]BYE[end]')
assert tmpl.render(context) == 'HELLO'
tmpl = Template('[form_user_name_identifier_0]')
assert tmpl.render(context) == pub.user_class.select()[0].name_identifiers[0]
def test_lazy_formdata_fields(pub):
formdef = FormDef()