ó
ľĚŘNc           @   so   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   Z d e f d     YZ d	 S(
   sA   Resources for use in unit tests with the C{testresources} module.i˙˙˙˙(   t   resource_string(   t   TestResource(   t   Application(   t   FakeLaunchpadc          C   s7   t  d k r3 d }  t d d  } t |  |  a  n  t  S(   s  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.
    s   https://api.launchpad.net/1.0/s   launchpadlib.testings   launchpad-wadl.xmlN(   t   launchpad_testing_applicationt   NoneR    R   (   t
   markup_urlt   markup(    (    sB   /usr/lib/python2.7/dist-packages/launchpadlib/testing/resources.pyt   get_application!   s    	t   FakeLaunchpadResourcec           B   s   e  Z d    Z RS(   c         C   s   t  d t d t d d    S(   Nt   applications    https://api.example.com/testing/s   launchpadlib.testings   testing-wadl.xml(   R   R   R    (   t   selft   dependency_resources(    (    sB   /usr/lib/python2.7/dist-packages/launchpadlib/testing/resources.pyt   make3   s    (   t   __name__t
   __module__R   (    (    (    sB   /usr/lib/python2.7/dist-packages/launchpadlib/testing/resources.pyR	   1   s   N(   t   __doc__t   pkg_resourcesR    t   testresourcesR   t   wadllib.applicationR   t   launchpadlib.testing.launchpadR   R   R   R   R	   (    (    (    sB   /usr/lib/python2.7/dist-packages/launchpadlib/testing/resources.pyt   <module>   s   	