Use Jinja's Template Tests