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@sddlZddlZddlZddlmZdejfdYZdejfdYZdejfdYZd Ze d krej d d ndS( iN(tStringIOtChildUtilsTestscBs>eZdZdZdZdZdZdZRS(cCs:ddlm}|idd6}|j|dk dS(Ni(tgetRPCInterfaceshttp://localhost:9001tSUPERVISOR_SERVER_URL(tsupervisor.childutilsRt assertTruetNone(tselfRtrpc((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyttest_getRPCInterfacescCs`ddlm}|idd6}|j|jd|j|jd|j|jddS(Ni(tgetRPCTransportshttp://localhost:9001Rt(RR t assertEqualtusernametpasswordt serverurl(RR tt((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyt"test_getRPCTransport_no_uname_pass s cCstddlm}idd6dd6dd6}||}|j|jd|j|jd|j|jddS( Ni(R shttp://localhost:9001RtchrismtSUPERVISOR_USERNAMEtabc123tSUPERVISOR_PASSWORD(RR R R RR(RR tenvR((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyt$test_getRPCTransport_with_uname_passs   cCsDddlm}d}||}|j|idd6dd6dS(Ni(t get_headerssa:1 b:2t1tat2tb(RRR (RRtlinetresult((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyttest_get_headerss cCsZddlm}d}||\}}|j|idd6dd6|j|ddS( Ni(t eventdatasa:1 b:2 thedata RRRRsthedata (RR R (RR tpayloadtheaderstdata((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyttest_eventdata$s c Cs?ddlm}tjd }||}|j|d dS( Ni(t get_asctimeiiiiiiis2009-01-18 22:14:07,000( iiiiiiiii(RR%ttimetmktimeR (RR%t timestampR((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyttest_get_asctime+s (t__name__t __module__R RRRR$R)(((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyRs     t!TestProcessCommunicationsProtocolcBs#eZdZdZdZRS(cCsrddlm}t}|jd|ddlm}|j}|j}|j|j d|d|fdS(Ni(tpcommthello(tProcessCommunicationEvents%s%s%s( RR-Rtsendtsupervisor.eventsR/t BEGIN_TOKENt END_TOKENR tgetvalue(RR-tstdoutR/tbegintend((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyt test_send2s   cCsddlm}tj}zft}t_|jdddlm}|j}|j}|j |j d|d|fWd|t_XdS(Ni(R-R.(R/s%s%s%s( RR-tsysR5RR1R/R2R3R R4(RR-toldtioR/R6R7((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyt test_stdout;s    'cCsddlm}tj}zft}t_|jdddlm}|j}|j}|j |j d|d|fWd|t_XdS(Ni(R-R.(R/s%s%s%s( RR-R9tstderrRR1R/R2R3R R4(RR-R:R;R/R6R7((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyt test_stderrHs    '(R*R+R8R<R>(((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyR,1s tTestEventListenerProtocolcBs5eZdZdZdZdZdZRS(cCsddlm}dd dY}|}t}|j||\}}|j|idd6|j|d|j|jddS( Ni(tlistenertDummycBseZdZdZRS(cSsdS(Nslen:5((R((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pytreadlineYscWsdS(NR.((Rtignored((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pytread[s(R*R+RBRD(((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyRAXs t5tlenR.sREADY ((RR@RtwaitR R4(RR@RAtstdinR5R"R!((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyt test_waitVs  cCsYddlm}ddlm}|j}t}|j||j|j|dS(Ni(R@(tPEventListenerDispatcher( RR@tsupervisor.dispatchersRJtREADY_FOR_EVENTS_TOKENRtreadyR R4(RR@RJttokenR5((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyt test_tokends    cCs]ddlm}ddlm}|j}t}|j||j|j|ddS(Ni(R@(RJs2 OK( RR@RKRJtRESULT_TOKEN_STARTRtokR R4(RR@RJR6R5((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyttest_okls    cCs]ddlm}ddlm}|j}t}|j||j|j|ddS(Ni(R@(RJs4 FAIL( RR@RKRJRPRtfailR R4(RR@RJR6R5((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyt test_failts    cCs{ddlm}ddlm}|j}t}d}|j||d|t||f}|j|j |dS(Ni(R@(RJsthe body data ya fool s%s%s %s( RR@RKRJRPRR0RFR R4(RR@RJR6R5tmsgtexpected((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyR8|s  (R*R+RIRORRRTR8(((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyR?Us     cCstjtjtS(N(tunittestt findTestCasesR9tmodulesR*(((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyt test_suitest__main__t defaultTestRZ( R9R&RWRtTestCaseRR,R?RZR*tmain(((sD/usr/lib/python2.7/site-packages/supervisor/tests/test_childutils.pyts   +$2