Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/jinja2/__pycache__/tests.cpython-37.pyc

70 lines
4.3 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>/<2F>]v<00>!@s>dZddlZddlZddlmZddlmZmZmZm Z ddl
Z
e<02> d<05>Z e e <0C>ZeZdd<07>Zdd <09>Zd
d <0B>Zd d <0A>Zdd<0F>Zdd<11>Zdd<13>Zdd<15>Zdd<17>Zdd<19>Zdd<1B>Zdd<1D>Zdd<1F>Zd d!<21>Zd"d#<23>Zd$d%<25>Z eeeeeeeeeeeeeeeee ej!ej!ej!ej"ej"ej#ej#ej#ej$ej$ej%ej%ej%ej&ej&d&<26> Z'dS)'z<>
jinja2.tests
~~~~~~~~~~~~
Jinja test functions. Used with the "is" operator.
:copyright: (c) 2017 by the Jinja Team.
:license: BSD, see LICENSE for more details.
<EFBFBD>N)<01> Undefined)<04> text_type<70> string_types<65> integer_types<65>abcz^-?\d+(\.\d+)?$cCs |ddkS)z#Return true if the variable is odd.<2E><00><00>)<01>valuer r <00>0/tmp/pip-install-c3kgu56x/Jinja2/jinja2/tests.py<70>test_oddsr cCs |ddkS)z$Return true if the variable is even.rrr )r
r r r <00> test_evensr cCs ||dkS)z-Check if a variable is divisible by a number.rr )r
<00>numr r r <00>test_divisibleby"srcCs t|t<01> S)a;Return true if the variable is defined:
.. sourcecode:: jinja
{% if variable is defined %}
value of variable: {{ variable }}
{% else %}
variable is not defined
{% endif %}
See the :func:`default` filter for a simple way to set undefined
variables.
)<02>
isinstancer)r
r r r <00> test_defined'srcCs
t|t<01>S)z-Like :func:`defined` but the other way round.)rr)r
r r r <00>test_undefined8srcCs|dkS)z$Return true if the variable is none.Nr )r
r r r <00> test_none=srcCs t|<00><01><01>S)z*Return true if the variable is lowercased.)r<00>islower)r
r r r <00>
test_lowerBsrcCs t|<00><01><01>S)z*Return true if the variable is uppercased.)r<00>isupper)r
r r r <00>
test_upperGsrcCs
t|t<01>S)z&Return true if the object is a string.)rr)r
r r r <00> test_stringLsrcCs t|tj<02>S)zSReturn true if the object is a mapping (dict etc.).
.. versionadded:: 2.6
)rr<00>Mapping)r
r r r <00> test_mappingQsrcCst|ttttjf<00>S)z(Return true if the variable is a number.)rr<00>float<61>complex<65>decimal<61>Decimal)r
r r r <00> test_numberYsrcCs"yt|<00>|jWn
dSdS)z^Return true if the variable is a sequence. Sequences are variables
that are iterable.
FT)<02>len<65> __getitem__)r
r r r <00> test_sequence^s 
r"cCs||kS)z<>Check if an object points to the same memory address than another
object:
.. sourcecode:: jinja
{% if foo.attribute is sameas false %}
the foo attribute really is the `False` singleton
{% endif %}
r )r
<00>otherr r r <00> test_sameasjs
r$cCs&y t|<00>Wntk
r dSXdS)z1Check if it's possible to iterate over an object.FT)<02>iter<65> TypeError)r
r r r <00> test_iterablews
 r'cCs
t|d<01>S)zCheck if the value is escaped.Z__html__)<01>hasattr)r
r r r <00> test_escaped<65>sr)cCs||kS)z:Check if value is in seq.
.. versionadded:: 2.10
r )r
<00>seqr r r <00>test_in<69>sr+) ZoddZevenZ divisiblebyZdefinedZ undefined<65>none<6E>lower<65>upper<65>string<6E>mapping<6E>number<65>sequence<63>iterable<6C>callableZsameas<61>escaped<65>inz==<3D>eqZequaltoz!=<3D>ne<6E>><3E>gtZ greaterthan<61>gez>=<3D><<3C>ltZlessthanz<=<3D>le)(<28>__doc__<5F>operator<6F>reZjinja2.runtimerZjinja2._compatrrrrr<00>compileZ number_re<72>typeZ
regex_typer4Z test_callabler r rrrrrrrrrr"r$r'r)r+r7r8r:r;r=r>ZTESTSr r r r <00><module>
sp