HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/hamcrest/library/text/__pycache__/isequal_ignoring_case.cpython-310.pyc
o

(]^O�@s^ddlmZddlmZddlmZdZdZdZGdd�dee	�Z
d	e	d
ee	fdd�Zd
S)�)�BaseMatcher)�Description)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc@sBeZdZdeddfdd�Zdedefdd�Zd	eddfd
d�ZdS)�IsEqualIgnoringCase�string�returnNcCs&t|t�s	td��||_|��|_dS)Nz#IsEqualIgnoringCase requires string)�
isinstance�str�	TypeError�original_string�lower�lowered_string)�selfr�r�M/usr/lib/python3/dist-packages/hamcrest/library/text/isequal_ignoring_case.py�__init__s
zIsEqualIgnoringCase.__init__�itemcCst|t�sdS|j|��kS)NF)rr	r
r)rrrrr�_matchess
zIsEqualIgnoringCase._matches�descriptioncCs|�|j��d�dS)Nz ignoring case)�append_description_ofr�append_text)rrrrr�describe_toszIsEqualIgnoringCase.describe_to)	�__name__�
__module__�__qualname__r	r�boolrrrrrrrr
srrrcCst|�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)rrrr�equal_to_ignoring_casesrN)�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�hamcrest.core.matcherr�
__author__�
__copyright__�__license__r	rrrrrr�<module>s