HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/hamcrest/library/text/__pycache__/isequal_ignoring_case.cpython-38.pyc
U

�b�V��@s<dZdZdZddlmZddlZGdd�de�Zdd	�ZdS)
zJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�)�BaseMatcherNc@s$eZdZdd�Zdd�Zdd�ZdS)�IsEqualIgnoringCasecCs(t|tj�std��||_|��|_dS)Nz#IsEqualIgnoringCase requires string)�
isinstance�six�string_types�	TypeError�original_string�lower�lowered_string)�self�string�r
�M/usr/lib/python3/dist-packages/hamcrest/library/text/isequal_ignoring_case.py�__init__szIsEqualIgnoringCase.__init__cCst|tj�sdS|j|��kS)NF)rrrr
r	)r�itemr
r
r�_matchesszIsEqualIgnoringCase._matchescCs|�|j��d�dS)Nz ignoring case)Zappend_description_ofrZappend_text)rZdescriptionr
r
r�describe_tos�zIsEqualIgnoringCase.describe_toN)�__name__�
__module__�__qualname__rrrr
r
r
rr	srcCst|�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)rr
r
r�equal_to_ignoring_casesr)�
__author__Z
__copyright__Z__license__Zhamcrest.core.base_matcherrrrrr
r
r
r�<module>s