/usr/lib/python2.6/site-packages/keystoneclient/tests/unit
NameSizeModeActions
apiclient/-0755rm
auth/-0755rm
generic/-0755rm
v2_0/-0755rm
v3/-0755rm
client_fixtures.py263360644editdlrm
client_fixtures.pyc161520644editdlrm
test_auth_token_middleware.py799550644editdlrm
test_auth_token_middleware.pyc863840644editdlrm
test_base.py65000644editdlrm
test_base.pyc75220644editdlrm
test_cms.py66850644editdlrm
test_cms.pyc82650644editdlrm
test_discovery.py301950644editdlrm
test_discovery.pyc310730644editdlrm
test_ec2utils.py118980644editdlrm
test_ec2utils.pyc99850644editdlrm
test_fixtures.py98850644editdlrm
test_fixtures.pyc85620644editdlrm
test_hacking_checks.py18700644editdlrm
test_hacking_checks.pyc23530644editdlrm
test_http.py82990644editdlrm
test_http.pyc91130644editdlrm
test_https.py41860644editdlrm
test_https.pyc40440644editdlrm
test_keyring.py81500644editdlrm
test_keyring.pyc71860644editdlrm
test_memcache_crypt.py43420644editdlrm
test_memcache_crypt.pyc45930644editdlrm
test_s3_token_middleware.py112030644editdlrm
test_s3_token_middleware.pyc129890644editdlrm
test_session.py377180644editdlrm
test_session.pyc435120644editdlrm
test_shell.py242970644editdlrm
test_shell.pyc213180644editdlrm
test_utils.py84310644editdlrm
test_utils.pyc124350644editdlrm
utils.py68400644editdlrm
utils.pyc89170644editdlrm
__init__.py00644editdlrm
__init__.pyc1680644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneclient/tests/unit/test_keyring.pyc (7186B)
Ñò eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsmtdjo|idƒndtiifd„ƒY}tt|ƒiƒ|ƒ|_ti |iƒdS(Ns3optional package keyring or pickle is not installedt MemoryKeyringcBs2eZdZd„Zd„Zd„Zd„ZRS(söA Simple testing keyring. This class supports stubbing an initial password to be returned by setting password, and allows easy password and key retrieval. Also records if a password was retrieved. cSs1d|_d|_t|_t|_t|_dS(N(tNonetkeyRtFalsetfetchedtget_password_calledtset_password_called(tself((sU/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/tests/unit/test_keyring.pyt__init__9s     cSsdS(Ni((R((sU/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/tests/unit/test_keyring.pyt supported@scSsTt|_|d|}|io|i|jodS|io t|_n|iS(Nt@(tTrueRR R RR(RtservicetusernameR ((sU/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/tests/unit/test_keyring.pyt get_passwordCs   cSs't|_|d||_||_dS(NR(RRR R(RRRR((sU/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/tests/unit/test_keyring.pyt set_passwordMs (t__name__t __module__t__doc__RRRR(((sU/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/tests/unit/test_keyring.pyR 2s    ( tkeyringR tskipTesttbackendtKeyringBackendtsuperR tsetUptmemory_keyringt set_keyring(RR ((sU/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/tests/unit/test_keyring.pyR#-s    c CsÜ|iiƒiiƒz(tidtdtdtdt ƒ}WdQXd}t i i ||ƒiiƒ}zB|~}t tf|_|i|iƒƒ|id|iƒWdQX|i|iiƒ|i|iiƒdS(soEnsure that if we don't have use_keyring set in the client that the keyring is never accessed. RRt project_idtauth_urlNt#get_raw_token_from_identity_servicei(t deprecationstexpect_deprecations_heret__exit__t __enter__Rt HTTPClienttUSERNAMEtPASSWORDt TENANT_IDtAUTH_URLtmocktpatchtobjectRtPROJECT_SCOPED_TOKENt return_valuet assertTruet authenticatet assertEqualt call_countt assertFalseR$RR(Rtcltmethodt_[1]tmeth((sU/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/tests/unit/test_keyring.pyttest_no_keyring_keyVs,cCs–|iiƒiiƒz(tidtdtdtdt ƒ}WdQX|i dt dtdt dtdt ƒ}|i |dt tt t tfƒdS( NRRR&R't tenant_nameR ttokens%s/%s/%s/%s/%s(R)R*R+R,RR-R.R/R0R1t_build_keyring_keytTENANTtTOKENR9(RR<t keyring_key((sU/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/tests/unit/test_keyring.pyttest_build_keyring_keyls  cCse|iiƒiiƒz.tidtdtdtdt dt ƒ}WdQXt i i dtƒ}tiƒtiddƒ}ti|ƒ|d d R?t new_auth_ref((sU/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/tests/unit/test_keyring.pyt test_set_and_get_keyring_expired|s" ,cCsÒ|iiƒiiƒz.tidtdtdtdt dt ƒ}WdQXt i i dtƒ}tiƒtiddƒ}ti|ƒ|d d R?RX((sU/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/tests/unit/test_keyring.pyttest_set_keyring¬s" , (RRR#R@RGRYR[R](((sU/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/tests/unit/test_keyring.pyR +s  )    (ROR2t oslo_utilsRtkeystoneclientRRtkeystoneclient.tests.unitRtkeystoneclient.tests.unit.v2_0RRQRRSt ImportErrorR tproject_scoped_tokenR5R.R1RER/RDR0tTestCaseR (((sU/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/tests/unit/test_keyring.pyt s(