Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/cheroot/test/__pycache__/test_cli.cpython-39.pyc
Ðазад
a p�hh � @ sb d Z ddlZddlZddlmZmZ ej�dd�dd� �Zej dd � �Z ej�d d�dd � �ZdS )zCTests to verify the command line interface. .. spelling:: cli � N)�Application�parse_wsgi_bind_addr�Z raw_bind_addrZexpected_bind_addr) )z192.168.1.1:80)z192.168.1.1�P )z [::1]:8000)z::1i@ )zlocalhost:5000)� localhost� )zfoo@bar:5000)�barr )�foo)r N)� 123456789)r N)�/tmp/cheroot.sockr )�/tmp/some-random-file-namer )z@cherootz cherootc C s t | �|ksJ �dS )zwCheck the parsing of the --bind option. Verify some of the supported addresses and the expected return value. N)r r � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/cheroot/test/test_cli.py�test_parse_wsgi_bind_addr s r c C s( G dd� d�}|� }| � tjd|� |S )zReturn a WSGI app stub.c @ s e Zd ZdZdd� Zdd� ZdS )zwsgi_app.<locals>.WSGIAppMockzMock of a wsgi module.c S s dS )a3 Empty application method. Default method to be called when no specific callable is defined in the wsgi application identifier. It has an empty body because we are expecting to verify that the same method is return no the actual execution of it. Nr ��selfr r r �application2 s z)wsgi_app.<locals>.WSGIAppMock.applicationc S s dS )z�Empty custom method (callable) inside the mocked WSGI app. It has an empty body because we are expecting to verify that the same method is return no the actual execution of it. Nr r r r r �main<