HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/launchpadlib/testing/__pycache__/resources.cpython-38.pyc
U

_��O��@sTdZddlmZddlmZddlmZddlmZda	dd�Z
Gd	d
�d
e�ZdS)zAResources for use in unit tests with the C{testresources} module.�)�resource_string)�TestResource)�Application)�
FakeLaunchpadNcCs$tdkr d}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)Z
markup_urlZmarkup�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)Zapplication)rrr)�selfZdependency_resourcesrrr	�make3s��zFakeLaunchpadResource.makeN)�__name__�
__module__�__qualname__r
rrrr	r1sr)�__doc__Z
pkg_resourcesrZ
testresourcesrZwadllib.applicationrZlaunchpadlib.testing.launchpadrrr
rrrrr	�<module>s