U
    AŒe“  ã                   @   s°   d dl Z d dlmZmZ d dlmZ d dlmZ d dlm	Z	 dZ
dZdZG d	d
„ d
ee ƒZee	e dœdd„Zee	e dœdd„Zee	e dœdd„Zee	e dœdd„ZdS )é    N)ÚAnyÚCallable)ÚBaseMatcher)ÚDescription)ÚMatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc                   @   sL   e Zd Zeeeegef eddœdd„Zeedœdd„Ze	ddœd	d
„Z
dS )ÚOrderingComparisonN)ÚvalueÚcomparison_functionÚcomparison_descriptionÚreturnc                 C   s   || _ || _|| _d S ©N)r   r	   r
   )Úselfr   r	   r
   © r   ú‡/var/www/nmhs-web.org.in/public_html/infoladakh/backend/venv/lib/python3.8/site-packages/hamcrest/library/number/ordering_comparison.pyÚ__init__   s    zOrderingComparison.__init__)Úitemr   c                 C   s   |   || j¡S r   )r	   r   )r   r   r   r   r   Ú_matches   s    zOrderingComparison._matches)Údescriptionr   c                 C   s$   |  d¡  | j¡  d¡ | j¡ d S )Nza value ú )Úappend_textr
   Zappend_description_ofr   )r   r   r   r   r   Údescribe_to   s
    ÿþzOrderingComparison.describe_to)Ú__name__Ú
__module__Ú__qualname__r   r   ÚboolÚstrr   r   r   r   r   r   r   r   r      s   û
r   )r   r   c                 C   s   t | tjdƒS )zgMatches if object is greater than a given value.

    :param value: The value to compare against.

    zgreater than)r   ÚoperatorÚgt©r   r   r   r   Úgreater_than!   s    r   c                 C   s   t | tjdƒS )zsMatches if object is greater than or equal to a given value.

    :param value: The value to compare against.

    zgreater than or equal to)r   r   Úger   r   r   r   Úgreater_than_or_equal_to*   s    r!   c                 C   s   t | tjdƒS )zdMatches if object is less than a given value.

    :param value: The value to compare against.

    z	less than)r   r   Últr   r   r   r   Ú	less_than3   s    r#   c                 C   s   t | tjdƒS )zpMatches if object is less than or equal to a given value.

    :param value: The value to compare against.

    zless than or equal to)r   r   Úler   r   r   r   Úless_than_or_equal_to<   s    r%   )r   Útypingr   r   Zhamcrest.core.base_matcherr   Zhamcrest.core.descriptionr   Zhamcrest.core.matcherr   Ú
__author__Ú__copyright__Ú__license__r   r   r!   r#   r%   r   r   r   r   Ú<module>   s   			