Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
¡‹EYc@s¬dZddlZddlmZddlmZddlmZmZm	Z	ddl
Z
ejdƒZe
eƒZeZd„Zd„Zd	„Zd
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"ied6ed6ed6ed6ed6ed6ed6ed 6ed!6ed"6ed#6ed$6ed%6ed&6ed'6ed(6e d)6e!d*6e"d+6Z#dS(,s¹
    jinja2.tests
    ~~~~~~~~~~~~

    Jinja test functions. Used with the "is" operator.

    :copyright: (c) 2017 by the Jinja Team.
    :license: BSD, see LICENSE for more details.
iÿÿÿÿN(tMapping(t	Undefined(t	text_typetstring_typest
integer_typess^-?\d+(\.\d+)?$cCs|ddkS(s#Return true if the variable is odd.ii((tvalue((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyttest_oddscCs|ddkS(s$Return true if the variable is even.ii((R((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyt	test_evenscCs||dkS(s-Check if a variable is divisible by a number.i((Rtnum((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyttest_divisibleby"scCst|tƒS(s;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.
    (t
isinstanceR(R((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyttest_defined'scCs
t|tƒS(s-Like :func:`defined` but the other way round.(R
R(R((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyttest_undefined8scCs
|dkS(s$Return true if the variable is none.N(tNone(R((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyt	test_none=scCst|ƒjƒS(s*Return true if the variable is lowercased.(Rtislower(R((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyt
test_lowerBscCst|ƒjƒS(s*Return true if the variable is uppercased.(Rtisupper(R((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyt
test_upperGscCs
t|tƒS(s&Return true if the object is a string.(R
R(R((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyttest_stringLscCs
t|tƒS(sSReturn true if the object is a mapping (dict etc.).

    .. versionadded:: 2.6
    (R
R(R((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyttest_mappingQscCst|ttttjfƒS(s(Return true if the variable is a number.(R
RtfloattcomplextdecimaltDecimal(R((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyttest_numberYscCs$yt|ƒ|jWntSXtS(s^Return true if the variable is a sequence. Sequences are variables
    that are iterable.
    (tlent__getitem__tFalsetTrue(R((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyt
test_sequence^s
cCs
||kS(sþCheck if an object has the same value as another object:

    .. sourcecode:: jinja

        {% if foo.expression is equalto 42 %}
            the foo attribute evaluates to the constant 42
        {% endif %}

    This appears to be a useless test as it does exactly the same as the
    ``==`` operator, but it can be useful when used together with the
    `selectattr` function:

    .. sourcecode:: jinja

        {{ users|selectattr("email", "equalto", "foo@bar.invalid") }}

    .. versionadded:: 2.8
    ((Rtother((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyttest_equaltojscCs
||kS(sï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 %}
    ((RR((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyttest_sameas€s
cCs'yt|ƒWntk
r"tSXtS(s1Check if it's possible to iterate over an object.(titert	TypeErrorRR(R((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyt
test_iterables

cCs
t|dƒS(sCheck if the value is escaped.t__html__(thasattr(R((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyttest_escaped–scCs
||kS(s%Check if value is greater than other.((RR((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyttest_greaterthan›scCs
||kS(s"Check if value is less than other.((RR((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyt
test_lessthan stoddteventdivisiblebytdefinedt	undefinedtnonetlowertuppertstringtmappingtnumbertsequencetiterabletcallabletsameastequaltotescapedtgreaterthantlessthan($t__doc__tretcollectionsRtjinja2.runtimeRtjinja2._compatRRRRtcompilet	number_rettypet
regex_typeR7t
test_callableRRR	RRRRRRRRRR R!R$R'R(R)tTESTS(((sA/home/tvault/.virtenv/lib/python2.7/site-packages/jinja2/tests.pyt<module>
s\