%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/hamcrest/library/text/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/hamcrest/library/text/__pycache__/isequal_ignoring_case.cpython-312.pyc

�

���eO��f�ddlmZddlmZddlmZdZdZdZGd�dee	�Z
d	e	d
ee	fd�Zy)
�)�BaseMatcher)�Description)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc�<�eZdZdeddfd�Zdedefd�Zdeddfd�Zy)	�IsEqualIgnoringCase�string�returnNc�r�t|t�std��||_|j	�|_y)Nz#IsEqualIgnoringCase requires string)�
isinstance�str�	TypeError�original_string�lower�lowered_string)�selfrs  �M/usr/lib/python3/dist-packages/hamcrest/library/text/isequal_ignoring_case.py�__init__zIsEqualIgnoringCase.__init__s.���&�#�&��A�B�B�%���$�l�l�n����itemc�^�t|t�sy|j|j�k(S)NF)rrrr)rrs  r�_matcheszIsEqualIgnoringCase._matchess&���$��$���"�"�d�j�j�l�2�2r�descriptionc�X�|j|j�jd�y)Nz ignoring case)�append_description_ofr�append_text)rrs  r�describe_tozIsEqualIgnoringCase.describe_tos"���)�)�$�*>�*>�?�K�K�L\�]r)	�__name__�
__module__�__qualname__rr�boolrrr�rrrr
s>��-�s�-�t�-�3�S�3�T�3�
^�{�^�t�^rrrr	c��t|�S)a�Matches if object is a string equal to a given string, ignoring case
    differences.

    :param string: The string to compare against as the expected value.

    This matcher first checks whether the evaluated object is a string. If so,
    it compares it with ``string``, ignoring differences of case.

    Example::

        equal_to_ignoring_case("hello world")

    will match "heLLo WorlD".

    )r)rs r�equal_to_ignoring_caser#s�� �v�&�&rN)�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�hamcrest.core.matcherr�
__author__�
__copyright__�__license__rrr#r!rr�<module>r*sG��2�1�)�
�
�-�
�$��
^�+�c�*�
^� '�3�'�7�3�<�'r

Zerion Mini Shell 1.0