Home | History | Annotate | Download | only in jinja2

Lines Matching defs:Test

310     For filtered nodes an expression can be stored as `test`, otherwise `None`.
312 fields = ('target', 'iter', 'body', 'else_', 'test', 'recursive')
316 """If `test` is true, `body` is rendered, else `else_`."""
317 fields = ('test', 'body', 'elif_', 'else_')
588 fields = ('test', 'expr1', 'expr2')
592 if self.test.as_const(eval_ctx):
669 class Test(Expr):
670 """Applies a test on an expression. `name` is the name of the test, the
677 test = self.environment.tests.get(self.name)
679 if test is None:
687 return test(*args, **kwargs)