/usr/lib/python2.6/site-packages/keystoneauth1/tests/unit
NameSizeModeActions
access/-0755rm
data/-0755rm
extras/-0755rm
identity/-0755rm
loading/-0755rm
client_fixtures.py49260644editdlrm
client_fixtures.pyc34730644editdlrm
k2k_fixtures.py54540644editdlrm
k2k_fixtures.pyc48780644editdlrm
keystoneauth_fixtures.py23600644editdlrm
keystoneauth_fixtures.pyc22390644editdlrm
matchers.py31650644editdlrm
matchers.pyc39060644editdlrm
oidc_fixtures.py16900644editdlrm
oidc_fixtures.pyc11390644editdlrm
test_betamax_fixture.py21930644editdlrm
test_betamax_fixture.pyc26040644editdlrm
test_discovery.py77450644editdlrm
test_discovery.pyc67150644editdlrm
test_fixtures.py107190644editdlrm
test_fixtures.pyc94260644editdlrm
test_hacking_checks.py17440644editdlrm
test_hacking_checks.pyc20340644editdlrm
test_matchers.py19020644editdlrm
test_matchers.pyc16580644editdlrm
test_session.py302600644editdlrm
test_session.pyc322580644editdlrm
test_token_endpoint.py23370644editdlrm
test_token_endpoint.pyc30200644editdlrm
test_utils.py7910644editdlrm
test_utils.pyc7910644editdlrm
utils.py49500644editdlrm
utils.pyc62150644editdlrm
__init__.py00644editdlrm
__init__.pyc1590644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/tests/unit/utils.pyc (6215B)
Ñò DVc@sÒddkZddkZddkZddkZddkZddkZddklZddk Z ddk l Z ddk Z ddk lZddkZdeifd„ƒYZde ifd„ƒYZdS( iÿÿÿÿN(tmox(tfixture(tparsetTestCasecBsõeZeiƒiZeiƒiZeiƒiZeiƒiZeiƒiZ eiƒiZ eiƒiZ eiƒiZ eiƒiZ eiƒiZdZd„Zd„Zd d d d„Zd d d„Zdd„Zd„Zd„ZRS( shttp://127.0.0.1:5000/cCsŠtt|ƒiƒtiƒ|_|itidti ƒƒ|_ t i i tdd„ƒ|_|iiƒ|itiƒƒ|_dS(NtlevelttimecSsdS(iÒ((((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pyt/s(tsuperRtsetUpRtMoxt useFixturetfixturest FakeLoggertloggingtDEBUGtloggertmocktpatchtobjectRt time_patchertstartRtFixturet requests_mock(tself((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pyR+s ! cCs>|iiƒ|iiƒ|iiƒtt|ƒiƒdS(N(RtstopRt UnsetStubst VerifyAllRRttearDown(R((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pyR4s   c KsÅ|p |i}n|o3ti|ƒ|d<|idhƒ}d|ddig}|g|D]}||idƒqm~ƒ} n|} | iddƒ} |ii|| |dS(Nttexttheaderssapplication/jsons Content-Typet/s/?t?( tTEST_URLt jsonutilstdumpst setdefaulttjointstriptreplaceRt register_uri( Rtmethodtpartstbase_urltjsontkwargsRt_[1]tpturl((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pytstub_url:s >cCsX|iii}|o#ti|ƒ}|i||ƒn|o|i||ƒndS(N(Rt last_requesttbodyR!tloadst assertEqual(RR2R+tlast_request_bodytval((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pytassertRequestBodyIsKs tcCsYti|dtƒ}ti|iiiƒ}ti|idtƒ}|i||ƒdS(s}Verify the QueryString matches what is expected. The qs parameter should be of the format 'foo=bar&abc=xyz' tkeep_blank_valuesN(turlparsetparse_qstTrueRR1R/tqueryR4(RtqstexpectedR)t querystring((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pytassertQueryStringIsSscKsxti|iiiƒ}ti|idtƒ}xAti|ƒD]0\}}|i ||ƒ|i |||ƒq@WdS(s«Verify the query string contains the expected parameters. This method is used to verify that the query string for the most recent request made contains all the parameters provided as ``kwargs``, and that the value of each parameter contains the value for the kwarg. If the value for the kwarg is an empty string (''), then all that's verified is that the parameter is present. R9N( R:RR1R/R;R=R<tsixt iteritemstassertIn(RR,R)R>tktv((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pytassertQueryStringContains]s  cCs,|iii}|i|i|ƒ|ƒdS(s|Verify that the last request made contains a header and its value The request must have already been made. N(RR1RR4tget(RtnameR6R((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pytassertRequestHeaderEqualnsN(t__name__t __module__tuuidtuuid4thextTEST_DOMAIN_IDtTEST_DOMAIN_NAMEt TEST_GROUP_IDt TEST_ROLE_IDtTEST_TENANT_IDtTEST_TENANT_NAMEt TEST_TOKENt TEST_TRUST_IDt TEST_USERt TEST_USER_IDt TEST_ROOT_URLRRtNoneR0R7RARGRJ(((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pyRs$  t TestResponsecBs/eZdZd„Zd„Zed„ƒZRS(shClass used to wrap requests.Response and provide some convenience to initialize with a dict. cCsŽd|_tt|ƒiƒt|tƒoU|iddƒ|_|idƒ}|o|i i |ƒn|idƒ|_ n ||_dS(Nt status_codeiÈRR( R[t_textRR\t__init__t isinstancetdictRHR]Rtupdatet_content(RtdataR((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pyR_|s cCs|i|ijS(N(t__dict__(Rtother((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pyt__eq__ŠscCs|iS(N(tcontent(R((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pyRs(RKRLt__doc__R_RgtpropertyR(((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pyR\ws  (R+R!R RRMR Rtmox3Rtrequeststrequests_mock.contribRRBtsix.moves.urllibRR:t testtoolsRtResponseR\(((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/tests/unit/utils.pyt s         [