HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/launchpadlib/testing/__pycache__/resources.cpython-310.pyc
o

�{a��@sTdZddlmZddlmZddlmZddlmZda	dd�Z
Gd	d
�d
e�ZdS)zAResources for use in unit tests with the C{testresources} module.�)�resource_string)�TestResource)�Application)�
FakeLaunchpadNcCs$tdurd}tdd�}t||�atS)aGet or create a WADL application for testing Launchpad.

    Note that this uses the Launchpad v1.0 WADL bundled with launchpadlib for
    testing purposes.  For your own application, you might want to construct
    an L{Application} object directly, giving it your own WADL.
    Nzhttps://api.launchpad.net/1.0/�launchpadlib.testingzlaunchpad-wadl.xml)�launchpad_testing_applicationrr)�
markup_url�markup�r
�@/usr/lib/python3/dist-packages/launchpadlib/testing/resources.py�get_application!s


rc@seZdZdd�ZdS)�FakeLaunchpadResourcecCsttdtdd��d�S)Nz https://api.example.com/testing/rztesting-wadl.xml)�application)rrr)�self�dependency_resourcesr
r
r�make1s��zFakeLaunchpadResource.makeN)�__name__�
__module__�__qualname__rr
r
r
rr
0sr
)�__doc__�
pkg_resourcesr�
testresourcesr�wadllib.applicationr�launchpadlib.testing.launchpadrrrr
r
r
r
r�<module>s