Current Path : /usr/lib/python2.7/dist-packages/launchpadlib/tests/ |
Current File : //usr/lib/python2.7/dist-packages/launchpadlib/tests/test_http.pyc |
Nc @ s* d Z d d l m Z d d l Z d d l Z d d l m Z m Z d d l m Z d d l m Z d d l m Z m Z d d l m Z m Z d Z e i Z d d d YZ d e f d YZ d e f d YZ d e j f d YZ d e f d YZ d e f d YZ d S( s, Tests for the LaunchpadOAuthAwareHTTP class.i( t dequeN( t dumpst JSONDecodeError( t Unauthorized( t UnencryptedFileCredentialStore( t Launchpadt LaunchpadOAuthAwareHttp( t NoNetworkAuthorizationEnginet NoNetworkLaunchpads <?xml version="1.0"?> <application xmlns="http://research.sun.com/wadl/2006/10"> <resources base="http://www.example.com/"> <resource path="" type="#service-root"/> </resources> <resource_type id="service-root"> <method name="GET" id="service-root-get"> <response> <representation href="#service-root-json"/> </response> </method> </resource_type> <representation id="service-root-json" mediaType="application/json"/> </application> t Responsec B s e Z d Z d Z RS( s A fake HTTP response object.c C s | | _ | | _ d S( N( t statust content( t selfR R ( ( s@ /usr/lib/python2.7/dist-packages/launchpadlib/tests/test_http.pyt __init__>