U
    [e                     @   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k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   )Z
markup_urlmarkup r	   `/var/www/html/services/stratfitenv/lib/python3.8/site-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)Zapplication)r   r   r   )selfZdependency_resourcesr	   r	   r
   make1   s    zFakeLaunchpadResource.makeN)__name__
__module____qualname__r   r	   r	   r	   r
   r   0   s   r   )__doc__pkg_resourcesr   Ztestresourcesr   Zwadllib.applicationr   Zlaunchpadlib.testing.launchpadr   r   r   r   r	   r	   r	   r
   <module>   s   