/usr/lib/python2.6/site-packages/cinderclient/tests/unit
Edit: /usr/lib/python2.6/site-packages/cinderclient/tests/unit/test_auth_plugins.pyc (19751B)
Ñò
=vVc @ sí d d k Z d d k Z d d k Z d d k Z y d d k Z Wn e j
o d d k Z n Xd d k l Z d d k l Z d d k
l Z d d k l
Z
d d „ Z d „ Z d e i f d „ ƒ YZ d
e i f d „ ƒ YZ d S( iÿÿÿÿN( t auth_plugin( t
exceptions( t utils( t clientc C sØ | p› h h h d d 6d d 6h d d 6d 6d 6h d d 6h d
d 6d d
6d d 6d d 6g d 6h d d 6h d
d 6d d
6d d 6d d 6g d 6g d 6d 6} n t i h d d 6t i | ƒ d 6ƒ } t i d | ƒ S( s Mock an HTTP Request.t 12345t expirest FAKE_IDt idt FAKE_TENANT_IDt tenantt tokent volumet typet RegionOnet regions http://localhost:8774/v1t adminURLt internalURLs http://localhost:8774/v1/t publicURLt endpointst volumev2s http://localhost:8774/v2s http://localhost:8774/v2/t serviceCatalogt accessiÈ t status_codet textt return_value( R t TestResponset jsont dumpst mockt Mock( t respt
auth_response( ( sV /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/test_auth_plugins.pyt mock_http_request s4 c C s h | i i d 6d d 6d d 6S( s Return requested passed headers.s
User-Agents application/jsons Content-Typet Accept( R t
USER_AGENT( t cs( ( sV /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/test_auth_plugins.pyt requested_headersN s
t DeprecatedAuthPluginTestc B sA e Z d „ Z d „ Z d „ Z e i i e d ƒ d „ ƒ Z RS( c s~ d t i f d „ ƒ Y‰ ‡ f d † } t ƒ ‰ t i i t d | ƒ t i i t d ˆ ƒ ‡ ‡ f d † ƒ ƒ } | ƒ d S( Nt MockEntrypointc B s e Z d „ Z d „ Z RS( c S s | i S( N( t authenticate( t self( ( sV /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/test_auth_plugins.pyt loadZ s c S s | i | h d d 6ƒ d S( Nt met fake( t
_authenticate( R( t clst auth_url( ( sV /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/test_auth_plugins.pyR' ] s ( t __name__t
__module__R) R' ( ( ( sV /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/test_auth_plugins.pyR&