o
    éú{aÅ  ã                   @   sT   d Z ddlmZ ddlmZ ddlmZ ddlmZ da	dd„ Z
G d	d
„ d
eƒZdS )zAResources for use in unit tests with the C{testresources} module.é    )Úresource_string)ÚTestResource)ÚApplication)ÚFakeLaunchpadNc                  C   s$   t du rd} tddƒ}t| |ƒa t S )a  Get 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.
    Nzhttps://api.launchpad.net/1.0/úlaunchpadlib.testingzlaunchpad-wadl.xml)Úlaunchpad_testing_applicationr   r   )Ú
markup_urlÚmarkup© r
   ú@/usr/lib/python3/dist-packages/launchpadlib/testing/resources.pyÚget_application!   s
   

r   c                   @   s   e Zd Zdd„ ZdS )ÚFakeLaunchpadResourcec                 C   s   t tdtddƒƒd�S )Nz https://api.example.com/testing/r   ztesting-wadl.xml)Úapplication)r   r   r   )ÚselfÚdependency_resourcesr
   r
   r   Úmake1   s   þÿzFakeLaunchpadResource.makeN)Ú__name__Ú
__module__Ú__qualname__r   r
   r
   r
   r   r   0   s    r   )Ú__doc__Úpkg_resourcesr   Útestresourcesr   Úwadllib.applicationr   Úlaunchpadlib.testing.launchpadr   r   r   r   r
   r
   r
   r   Ú<module>   s   