/usr/lib/python2.6/site-packages/cinderclient/tests/unit/v1
Edit: /usr/lib/python2.6/site-packages/cinderclient/tests/unit/v1/test_auth.pyc (10473B)
Ñò
=vVc @ sŠ d d k Z d d k Z d d k Z d d k l Z d d k l Z d d k l Z d e i f d „ ƒ YZ
d e i f d „ ƒ YZ d S( iÿÿÿÿN( t client( t
exceptions( t utilst AuthenticateAgainstKeystoneTestsc B s, e Z d „ Z d „ Z d „ Z d „ Z RS( c sê t i d d d d d d ƒ‰ h h h d d 6d d
6d 6h d d 6h d
d 6d d 6d d 6d d 6g d 6g d 6d 6‰ t i h d d 6t i ˆ ƒ d 6ƒ } t i d | ƒ ‰ t i i t
d ˆ ƒ ‡ ‡ ‡ ‡ f d † ƒ } | ƒ d S( Nt usernamet passwordt
project_ids http://localhost:8776/v1t service_typet volumes 2014-11-01T03:32:15-05:00t expirest FAKE_IDt idt tokent typet RegionOnet regiont adminURLt internalURLt publicURLt endpointst serviceCatalogt accessiÈ t status_codet textt return_valuet requestc
s ˆ i i ƒ h ˆ i i d 6d d 6d d 6} h h h ˆ i i d 6ˆ i i d 6d 6ˆ i i d 6d 6} ˆ i i d
} ˆ i d | d | d
t i | ƒ d t
ˆ i ˆ d d d d } | d d i d ƒ } ˆ i
| ˆ i i ƒ ˆ d d d } ˆ i
| ˆ i i ƒ d S( Ns
User-Agents application/jsons Content-Typet AcceptR R t passwordCredentialst
tenantNamet auths /tokenst POSTt headerst datat allow_redirectsR R i R R t /R R ( R t authenticatet
USER_AGENTt userR t projectidt auth_urlt assert_called_witht jsont dumpst Truet TEST_REQUEST_BASEt rstript assertEqualt management_urlt
auth_token( R t bodyt token_urlR t
public_urlt token_id( t selft mock_requestt cst resp( sQ /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v1/test_auth.pyt test_auth_call8 s0
( R t ClientR t TestResponseR) R* t mockt Mockt patcht objectt requests( R5 t
auth_responseR9 ( ( R5 R6 R7 R8 sQ /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v1/test_auth.pyt test_authenticate_success s( 0!c s t i d d d d d d d d ƒ‰ h h h d d 6d
d 6h d d 6t d
6d d 6d d 6d 6d 6h d d 6h d d 6d d 6d d 6d d 6g d 6g d 6d 6‰ t i h d d 6t i ˆ ƒ d 6ƒ } t i d | ƒ ‰ t i
i t d ˆ ƒ ‡ ‡ ‡ ‡ f d † ƒ } | ƒ d S(! NR R R' s http://localhost:8776/v1t tenant_idR R s 2014-11-01T03:32:15-05:00R R
R t descriptiont enabledt demot namet tenantR R
R R R R R R R R iÈ R R R R c
sE ˆ i i ƒ h ˆ i i d 6d d 6d d 6} h h h ˆ i i d 6ˆ i i d 6d 6ˆ i i d 6d 6} ˆ i i d
} ˆ i d | d | d
t i | ƒ d t
ˆ i ˆ d d d d } | d d i d ƒ } ˆ i
| ˆ i i ƒ ˆ d d d } ˆ i
| ˆ i i ƒ ˆ d d d d } ˆ i
| ˆ i i ƒ d S( Ns
User-Agents application/jsons Content-TypeR R R R t tenantIdR s /tokensR R R R! R R i R R R" R R RH ( R R# R$ R% R RC R' R( R) R* R+ R, R- R. R/ R0 ( R R1 R2 R R3 R4 RC ( R5 R6 R7 R8 ( sQ /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/tests/unit/v1/test_auth.pyR9 s4
(
R R: t NoneR+ R R; R) R* R<