Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/launchpadlib/tests/__pycache__/ |
Upload File : |
o '[�a�$ � @ s� d Z ddlmZ ddlmZ ddlZddlZzddlmZ W n ey) e ZY nw ddl mZ ddlm Z ddlmZmZ dd lmZ d Zei ��d�ZG dd � d �ZG dd� de�ZG dd� de�ZG dd� dej�ZG dd� de�ZG dd� de�ZdS )z,Tests for the LaunchpadOAuthAwareHTTP class.� )�deque)�dumpsN)�JSONDecodeError)�Unauthorized)�UnencryptedFileCredentialStore)� Launchpad�LaunchpadOAuthAwareHttp)�NoNetworkAuthorizationEngines� <?xml version="1.0"?> <application xmlns="http://research.sun.com/wadl/2006/10"> <resources base="http://www.example.com/"> <resource path="" type="#service-root"/> </resources> <resource_type id="service-root"> <method name="GET" id="service-root-get"> <response> <representation href="#service-root-json"/> </response> </method> </resource_type> <representation id="service-root-json" mediaType="application/json"/> </application> zutf-8c @ s e Zd ZdZdd� ZdS )�ResponsezA fake HTTP response object.c C s || _ || _d S �N)�status�content)�selfr r � r �>/usr/lib/python3/dist-packages/launchpadlib/tests/test_http.py�__init__@ s zResponse.__init__N)�__name__� __module__�__qualname__�__doc__r r r r r r = s r c s( e Zd ZdZ� fdd�Zdd� Z� ZS )�SimulatedResponsesHttpz<Responds to HTTP requests by shifting responses off a stack.c s&