Your IP : 216.73.217.13


Current Path : /usr/lib/python3/dist-packages/launchpadlib/testing/__pycache__/
Upload File :
Current 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