File manager - Edit - /home/newsbmcs.com/public_html/static/img/logo/hamcrest.zip
Back
PK e��Z���] ] $ __pycache__/__init__.cpython-310.pycnu �[��� o (]^� � @ s$ d dl T d dlT dZdZdZdZdS )� )�*z2.0.2z Chris RosezCopyright 2020 hamcrest.orgzBSD, see License.txtN)� hamcrest.core�hamcrest.library�__version__� __author__� __copyright__�__license__� r r �3/usr/lib/python3/dist-packages/hamcrest/__init__.py�<module> s PK e��Z py.typednu �[��� PK e��Z���~ ~ core/selfdescribing.pynu �[��� from hamcrest.core.description import Description __author__ = "Jon Reid" __copyright__ = "Copyright 2011 hamcrest.org" __license__ = "BSD, see License.txt" class SelfDescribing: """The ability of an object to describe itself.""" def describe_to(self, description: Description) -> None: """Generates a description of the object. The description may be part of a description of a larger object of which this is just a component, so it should be worded appropriately. :param description: The description to be built or appended to. """ raise NotImplementedError("describe_to") PK e��Z^�mot t 1 core/__pycache__/base_description.cpython-310.pycnu �[��� o (]^� � @ sf d dl mZmZ d dlmZ d dlmZ d dlmZ dZ dZ dZG dd � d e�Zd e de fdd �ZdS )� )�Any�Iterable)�Description)� hasmethod)�ismockzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc @ sz e Zd ZdZdedefdd�Zdedefdd�Zd ed edede e def d d�Z deddfdd�Zdeddfdd�ZdS )�BaseDescriptionz`Base class for all :py:class:`~hamcrest.core.description.Description` implementations. �text�returnc C s | � |� | S )N)�append)�selfr � r �@/usr/lib/python3/dist-packages/hamcrest/core/base_description.py�append_text s zBaseDescription.append_text�valuec C s� t |�st|d�r|�| � | S t|t�r| �t|�� | S t|�}|d d� dkr9|dd � dkr9| �|� | S | �d� | �|� | �d� | S )N�describe_to� �<����>)r r r � isinstance�strr �repr)r r �descriptionr r r �append_description_of s � � � z%BaseDescription.append_description_of�start� separator�end�listc C sB d}| � |� |D ]}|r| � |� | �|� d}q | � |� | S )NFT)r r )r r r r r �separate�itemr r r �append_list% s zBaseDescription.append_list�stringNc C s t d��)z%Append the string to the description.r )�NotImplementedError)r r! r r r r 1 s zBaseDescription.appendc C s0 | � d� |D ] }| � t|�� q| � d� d S )N�')r �character_in_python_syntax)r r! �chr r r �append_string_in_python_syntax5 s z.BaseDescription.append_string_in_python_syntax) �__name__� __module__�__qualname__�__doc__r r r r r r r r r&