Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/cheroot/test/__pycache__/webtest.cpython-39.pyc
Ðазад
a p�h�G � @ sr d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZ ddlZddlmZ ddlZdd� Zz0ejdd� dkr�dd � ZnddlZd d � ZW n* ey� ddlZddlZdd � ZY n0 G dd � d �ZG dd� de j�ZdZdd� Zdd� Z dd�dd�Z!ddddde j"j#ddfdd�Z$dd � Z%g Z&d!Z'G d"d#� d#e(�Z)d&d$d%�Z*dS )'a� Extensions to unittest for web frameworks. Use the :py:meth:`WebCase.getPage` method to request a page from your HTTP server. Framework Integration ===================== If you have control over your server process, you can handle errors in the server-side of the HTTP conversation a bit better. You must run both the client (your :py:class:`WebCase` tests) and the server in the same process (but in separate threads, obviously). When an error occurs in the framework, call server_error. It will print the traceback to stdout, and keep any assertions you have from running (the assumption is that, if the server errors, the page output will not be of further significance to your tests). � N)�always_iterablec C s | dkrdS | dkrdS | S )z�Return an IP address for a client connection given the server host. If the server is listening on '0.0.0.0' (INADDR_ANY) or '::' (IN6ADDR_ANY), this will return the proper localhost. z0.0.0.0� 127.0.0.1z::z::1� )�hostr r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/cheroot/test/webtest.py� interface$ s r � �javac C s t j�d�S ��Get a key press.� )�sys�stdin�readr r r r �getchar6 s r c C s t �� S )r )�msvcrtZgetchr r r r r >