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/testing/tests/__pycache__/ |
Upload File : |
o Ʋ�a? � @ st d dl m Z d dlmZ d dlmZmZmZmZ d dlm Z m Z G dd� de�ZG dd� de�ZG d d � d e�Z dS )� )�datetime)�ResourcedTestCase)� FakeLaunchpad�FakeResource�FakeRoot�IntegrityError)�FakeLaunchpadResource�get_applicationc @ s e Zd Zdd� ZdS )�FakeRootTestc C s t t� �}| �t|t�� d S �N)r r � assertTrue� isinstancer )�self� root_resource� r �K/usr/lib/python3/dist-packages/launchpadlib/testing/tests/test_launchpad.py�test_create_root_resource$ s z&FakeRootTest.test_create_root_resourceN)�__name__� __module__�__qualname__r r r r r r # s r c @ s0 e Zd Zde� fgZdd� Zdd� Zdd� ZdS ) �FakeResourceTest� launchpadc sR t dd�� t � fdd�d�| j_| jj�g �� tt� ��}| �d| t� �� dS )z6A custom C{__repr__} is provided for L{FakeResource}s.�test-branch�� total_sizec � � S r r ��statuses��branchesr r �<lambda>0 � z,FakeResourceTest.test_repr.<locals>.<lambda>��getBranchesz0<FakeResource branch-page-resource object at %s>N)�dictr �mer# �hex�id�assertEqual�repr)r �obj_idr r r � test_repr- s �zFakeResourceTest.test_reprc C s6 t dd�| j_| jj}| �dtt|�� t|�� dS )z� If the fake has a C{name} property it's included in the repr string to make it easier to figure out what it is. �foo��namez<FakeEntry person foo at %s>N)r$ r r% r( r&