0x1949 Team - FAZEMRX - MANAGER
Edit File: tests.cpython-310.pyc
o f�q` � @ s: d Z ddlZddlZddlmZ ddlmZ ddlm Z ddl mZ ejr+ddl mZ d ed efdd�Zd ed efd d�Zd eded efdd�Zd ejd efdd�Zd ejd efdd�Zeddd ed efdd��Zeddd ed efdd��Zd ejd efdd�Zd ejd efdd�Zd ejd efd d!�Zd ejd efd"d#�Zd ejd efd$d%�Zd ejd efd&d'�Zd ed efd(d)�Z d ed efd*d+�Z!d ejd efd,d-�Z"d ejd efd.d/�Z#d ejd efd0d1�Z$d ejd efd2d3�Z%d ejd4ejd efd5d6�Z&d ejd efd7d8�Z'd ejd efd9d:�Z(d ejd;ej)d efd<d=�Z*i d>e�d?e�d@e�dAe�dBe�dCe�dDe�dEe�dFe�dGe�dHe�dIe�dJe�dKe �dLe!�dMe"�dNe#�i dOe$�dPe%�dQe'�dRe+�dSe&�dTe(�dUe*�dVej,�dWej,�dXej,�dYej-�dZej-�d[ej.�d\ej.�d]ej.�d^ej/�d_ej/��ej0ej0ej0ej1ej1d`��Z2dS )az6Built-in template tests used with the ``is`` operator.� N)�abc)�Number� )� Undefined)�pass_environment)�Environment�value�returnc C � | d dkS )z#Return true if the variable is odd.� r � �r r r �./usr/lib/python3/dist-packages/jinja2/tests.py�test_odd � r c C r )z$Return true if the variable is even.r r r r r r r � test_even r r �numc C s | | dkS )z-Check if a variable is divisible by a number.r r )r r r r r �test_divisibleby r r c C s t | t� 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. �� isinstancer r r r r �test_defined s r c C � t | t�S )z-Like :func:`defined` but the other way round.r r r r r �test_undefined. � r �envr c C � || j v S )a Check if a filter exists by name. Useful if a filter may be optionally available. .. code-block:: jinja {% if 'markdown' is filter %} {{ value | markdown }} {% else %} {{ value }} {% endif %} .. versionadded:: 3.0 )�filters�r r r r r �test_filter3 s r c C r )a� Check if a test exists by name. Useful if a test may be optionally available. .. code-block:: jinja {% if 'loud' is test %} {% if value is loud %} {{ value|upper }} {% else %} {{ value|lower }} {% endif %} {% else %} {{ value }} {% endif %} .. versionadded:: 3.0 )�testsr r r r � test_testE s r c C � | du S )z$Return true if the variable is none.Nr r r r r � test_none[ s r"