PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  4h^c@sddlZddlZddlmZddlmZdejfdYZdejfdYZdejfd YZd dd YZ d Z e d krej ddndS(iN(tDummySupervisor(t DummyRequesttDeferredWebProducerTestscBsGeZdZdZdZdZdZdZdZRS(cCsddlm}|S(Ni(tDeferredWebProducer(tsupervisor.webR(tselfR((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyt_getTargetClassscCs|j||}|S(N(R(Rtrequesttcallbacktproducer((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyt_makeOne scCstdgdd}d}d|_|j||}|j|j||j|j||j|jt|j|jddS(Ns /index.htmltcWsdS(N(tNone(tx((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pytsi(RtdelayR t assertEqualRRtfinishedtFalse(RRRR ((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyt test_ctors  csitdgdd}ddlmfd}d|_|j||}|j|jdS(Ns /index.htmlR i(t NOT_DONE_YETcsS(N((R (R(s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyRsi(Rtsupervisor.httpRRR Rtmore(RRRR ((Rs=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyttest_more_not_done_yets  cCstdgdd}d}d|_|j||}|j|jd|jjjj }|jt |d|d}|j|dd|j |dj d|d|j|j t|j|jddS( Ns /index.htmlR cWstddS(Ntfoo(t ValueError(targ((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyR$siisWeb interface errort Tracebacki(RRR RRR tchanneltservertloggertloggedtlent assertTruet startswithRtTruet_error(RRRR tlogdataR((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyttest_more_exception_caught"s   !cCstdgdd}d}d|_|j||}iidd6d6}|j|}|j|d|j|jd|j|jd d |j|jd d dS( Ns /index.htmlR cWsdS(N(R (R((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyR3sitabctLocationtheadersi-s Content-Types text/plainsContent-Lengthi(RRR t sendresponseRR R$R)(RRRR tresponsetresult((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyttest_sendresponse_redirect1s  cCstdgdd}d}d|_|j||}idd6idd6d 6}|j|}|j|d|j|jdd|j|jd d |j|jd ddS( Ns /index.htmlR cWsdS(N(R (R((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyR?siR'tbodys text/htmls Content-TypeR)sContent-Lengthii(RRR R*RR R)t producers(RRRR R+R,((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyt+test_sendresponse_withbody_and_content_type=s  ( t__name__t __module__RR RRR&R-R0(((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyRs     tUIHandlerTestscBsGeZdZdZdZdZdZdZdZRS(cCsddlm}|S(Ni(tsupervisor_ui_handler(RR4(RR4((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyRJscCst}|j|}|S(N(RR(Rt supervisordthandler((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyR Ns cCsNtdgddidd6}|j}|j|}|j|ddS(Ns/foo.cssR t PATH_INFO(RR thandle_requestRR (RRR6tdata((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyt"test_handle_request_no_view_methodSs cCstdgddidd6}|j}|j|}|j|d|j|jjj|ddlm }|j|jjj j |dS(Ns /index.htmlR R7i(t StatusView( RR R8RR RR RRR;Rt __class__(RRR6R9R;((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyttest_handle_request_defaultYs cCstdgddidd6}|j}|j|ddlm}|jjj}|j|j ||j|j j ddS(Ns /index.htmlR R7i(R;sui/status.html( RR R8RR;RR RRR<tcontextttemplate(RRR6R;tview((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyttest_handle_request_index_htmlcs  cCstdgddidd6}|j}|j|ddlm}|jjj}|j|j ||j|j j ddS(Ns /tail.htmlR R7i(tTailViews ui/tail.html( RR R8RRBRR RRR<R>R?(RRR6RBR@((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyttest_handle_request_tail_htmlms  cCstdgddidd6}|j}|j|ddlm}|jjj}|j|j ||j|j j ddS(Ns /tail.htmlR s/ok.htmlR7i(tOKView( RR R8RRDRR RRR<R>R?R (RRR6RDR@((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyttest_handle_request_ok_htmlws  ( R1R2RR R:R=RARCRE(((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyR3Is    tStatusViewTestscBs5eZdZdZdZdZdZRS(cCsddlm}|S(Ni(R;(RR;(RR;((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyRscCs|j}||S(N(R(RR>tklass((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyR s cCsSt}t|_d|_i|_|j|}|jt|jdddS(Nsui/status.htmltprocess( t DummyContextRR5R?tformR t assertRaisesRt make_callbackR (RR>R@((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyttest_make_callback_noactions     cCst}t|_d|_tdgdd|_i|_i|_|j|}|j }|j |j d|dS(Nsui/status.htmls/fooR sR@R9((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyttest_render_noactions      cCs|t}t|_d|_i|_idd6|_|j|}|j}ddlm }|j ||k|dS(Nsui/status.htmltrefreshtactioni(R( RIRR5R?R+RJR RNRRR!(RR>R@R9R((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyttest_render_refreshs     (R1R2RR RMRORR(((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyRFs     RIcBseZRS((R1R2(((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyRIscCstjtjtS(N(tunittestt findTestCasestsystmodulesR1(((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyt test_suitest__main__t defaultTestRW(( RURStsupervisor.tests.baseRRtTestCaseRR3RFRIRWR1tmain(((s=/usr/lib/python2.7/site-packages/supervisor/tests/test_web.pyts  B9'