/usr/lib/python2.6/site-packages/novaclient/tests/unit
NameSizeModeActions
fixture_data/-0755rm
v2/-0755rm
fakes.py29050644editdlrm
fakes.pyc31620644editdlrm
fake_actions_module.py10570644editdlrm
fake_actions_module.pyc11090644editdlrm
idfake.pem16750644editdlrm
test_api_versions.py142780644editdlrm
test_api_versions.pyc160990644editdlrm
test_auth_plugins.py130560644editdlrm
test_auth_plugins.pyc200380644editdlrm
test_base.py25150644editdlrm
test_base.pyc29070644editdlrm
test_client.py199360644editdlrm
test_client.pyc204050644editdlrm
test_discover.py27680644editdlrm
test_discover.pyc35140644editdlrm
test_exceptions.py19940644editdlrm
test_exceptions.pyc19180644editdlrm
test_http.py69580644editdlrm
test_http.pyc80940644editdlrm
test_service_catalog.py29890644editdlrm
test_service_catalog.pyc27580644editdlrm
test_shell.py273360644editdlrm
test_shell.pyc291700644editdlrm
test_utils.py141650644editdlrm
test_utils.pyc185540644editdlrm
utils.py44450644editdlrm
utils.pyc50550644editdlrm
__init__.py00644editdlrm
__init__.pyc1600644editdlrm
Edit: /usr/lib/python2.6/site-packages/novaclient/tests/unit/test_http.pyc (8094B)
Ñò =vVc @sèddkZddkZddkZddklZddklZddklZeihdd6dd6ƒZ ei d e ƒZ eihd d6d d6ƒZ ei d e ƒZ eihd d6d d6ƒZei d eƒZeihd d6d d6ƒZei d eƒZeihdd6d d6hdd6d6ƒZei d eƒZeihdd6d d6ƒZei d eƒZeihdd6d d6hdd6d6ƒZei d eƒZd„Zd„Zdeifd„ƒYZdS(iÿÿÿÿN(tclient(t exceptions(tutilsiÈt status_codes{"hi": "there"}ttextt return_valueis[Errno 111] Connection refusedti÷it5s retry-aftertheadersi“cCstidddtiƒ}|S(Ntusernametpasswordt project_id(Rt HTTPClientRt AUTH_URL_V2(tcl((sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyt get_clientJs  cCs4tƒ}d|_d|_tiddƒ|_|S(Nshttp://example.comttokenR(Rtmanagement_urlt auth_tokentmocktMocktget_service_url(R((sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pytget_authed_clientQs    t ClientTestcBsËeZd„Zd„Zd„Zd„Zd„Zd„Zd„Ze i i e de ƒd„ƒZe i i e deƒd „ƒZe i i e deƒd „ƒZe i i e deƒd „ƒZRS( cs\tƒ‰tiitdtƒtidtiddƒƒ‡‡fd†ƒƒ}|ƒdS(Ntrequests time.timeRiÒcsqˆidƒ\}}hdd6dd6ˆid6dd6}tid d d |ˆiˆihd d 6|ƒdS(Ns/hiRs X-Auth-TokenR sX-Auth-Project-Ids User-Agentsapplication/jsontAccepttGETshttp://example.com/hiRttherethi(tgett USER_AGENTt mock_requesttassert_called_withtTEST_REQUEST_BASEt assertEqual(tresptbodyR(Rtself(sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyt test_get_call^s    (RRtpatchtobjecttrequestsRR(R%R&((RR%sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyttest_get[s 3cs>tƒ‰tiitdtƒ‡‡fd†ƒ}|ƒdS(NRcsnˆidddddgƒhdd6dd 6d d 6d d 6ˆid 6}tiddd|ddˆidS(Ns/hiR$iiiRs X-Auth-TokenR sX-Auth-Project-Idsapplication/jsons Content-TypeRs User-AgenttPOSTshttp://example.com/hiRtdatas [1, 2, 3](tpostRRR R!(R(R%R(sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyttest_post_callss (RRR'R(R)R(R%R.((RR%sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyt test_postps *csAtƒ‰tiitidtƒ‡‡fd†ƒ}|ƒdS(NRcsˆitiˆiƒdS(N(t assertRaisesRtAuthorizationFailuret authenticate((R%R(sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyttest_auth_callŠs(RRR'R(R)tSessionR(R%R3((RR%sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyttest_auth_failure†s -cCs,tiddƒ}|iti|iƒdS(NR R (RR R0RR1R2(R%R((sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyt)test_auth_failure_due_to_miss_of_auth_urlscs>tƒ‰tiitdtƒ‡‡fd†ƒ}|ƒdS(NRcsˆitiˆidƒdS(Ns/hi(R0RtConnectionRefusedR((R%R(sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyttest_refused_call˜s(RRR'R(R)trefused_mock_request(R%R8((RR%sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyttest_connection_refused•s *cs>tƒ‰tiitdtƒ‡‡fd†ƒ}|ƒdS(NRcsˆitiˆidƒdS(Ns/hi(R0Rt BadRequestR((R%R(sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyR8¡s(RRR'R(R)tbad_req_mock_request(R%R8((RR%sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyttest_bad_requestžs *cCsxtidddddtƒ}|idt|iiƒƒtidddddtƒ}|idt|iiƒƒdS(NR R R t auth_testthttp_log_debugi(RR tTrueR"tlent_loggerthandlers(R%tcl1tcl2((sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyttest_client_logger§s RcCs_tƒ}y|idƒWn1tij o"}|idti|ƒƒnX|idƒdS(Ns/his Unknown Errors#Expected exceptions.ClientException(RRRtClientExceptiontassertIntsixt text_typetfail(R%Rtexc((sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyttest_unknown_server_error°s  cCsYtƒ}y|idƒWn+tij o}|id|iƒnX|idƒdS(Ns/hiisExpected exceptions.OverLimit(RRRt OverLimitR"t retry_afterRK(R%RRL((sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyttest_retry_after_request½s  cCsYtƒ}y|idƒWn+tij o}|id|iƒnX|idƒdS(Ns/hiisExpected exceptions.OverLimit(RRRRNR"RORK(R%RRL((sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyt#test_retry_after_request_no_headersÈs  cCs&tƒ}|iti|idƒdS(Ns/hi(RR0Rt ForbiddenR(R%R((sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyt+test_retry_after_request_non_supporting_excÔs (t__name__t __module__R*R/R5R6R:R=RFRR'R(R)tunknown_error_mock_requestRMtretry_after_mock_requestRPt#retry_after_no_headers_mock_requestRQt'retry_after_non_supporting_mock_requestRS(((sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pyRYs    ! !  (RR)RIt novaclientRRtnovaclient.tests.unitRt TestResponset fake_responseRRtrefused_responseR9tbad_req_responseR<tunknown_error_responseRVtretry_after_responseRWtretry_after_no_headers_responseRXt#retry_after_non_supporting_responseRYRRtTestCaseR(((sJ/tmp/pip-build-cD3xZi/python-novaclient/novaclient/tests/unit/test_http.pytsT