Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/cherrypy/test/__pycache__/test_httputil.cpython-39.pyc
Ðазад
a v�hl � @ s� d Z ddlZddlZddlmZ ej�dg d��dd� �ZdZ d Z d ZdZej�dde fd e fde fej jefdefg�dd� �Zej�ddddidfddg�dd� �ZdS )z3Test helpers from ``cherrypy.lib.httputil`` module.� N)�httputilz"script_name,path_info,expected_url))�/sn/�/pi/�/sn/pi/)r �/pi�/sn/pi)r �/r )r � r )�/snr r )r r r )r r r )r r r )r r r )r r r )r r r )r r r )r r r )r r r )r r r )r r r c C s t �| |�}||ksJ �dS )z?Test all slash+atom combinations for SCRIPT_NAME and PATH_INFO.N)r �urljoin)�script_nameZ path_infoZexpected_urlZ actual_url� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/cherrypy/test/test_httputil.py�test_urljoin s r )�� �OKz#Request fulfilled, document follows)i� zInternal Server Errorz^The server encountered an unexpected condition which prevented it from fulfilling the request.)i� z Not FoundzNothing matches the given URI)i� zNon-existent reasonr zstatus,expected_statusr �500z444 Non-existent reasonc C s t �| �|ksJ �dS )zJCheck valid int, string and http.client-constants statuses processing.N)r �valid_status)�statusZexpected_statusr r r �test_valid_status. s r zstatus_code,error_msg)�heyz=Illegal response status from server \('hey' is non-numeric\).r �hizGIllegal response status from server \(\{'hey': 'hi'\} is non-numeric\).)� z:Illegal response status from server \(1 is out of range\).)iX z<Illegal response status from server \(600 is out of range\).c C s<