ÿØÿà JFIF    ÿÛ „  ( %"1!%)+...383,7(-.+  -+++--++++---+-+-----+---------------+---+-++7-----ÿÀ  ß â" ÿÄ     ÿÄ H    !1AQaq"‘¡2B±ÁÑð#R“Ò Tbr‚²á3csƒ’ÂñDS¢³$CÿÄ   ÿÄ %  !1AQa"23‘ÿÚ   ? ôÿ ¨pŸªáÿ —åYõõ\?àÒü©ŠÄï¨pŸªáÿ —åYõõ\?àÓü©ŠÄá 0Ÿªáÿ Ÿå[úƒ ú®ði~TÁbqÐ8OÕpÿ ƒOò¤Oè`–RÂáœá™êi€ßÉ< FtŸI“öÌ8úDf´°å}“¾œ6  öFá°y¥jñÇh†ˆ¢ã/ÃÐ:ªcÈ "Y¡ðÑl>ÿ ”ÏËte:qž\oäŠe÷󲍷˜HT4&ÿ ÓÐü6ö®¿øþßèô Ÿ•7Ñi’•j|“ñì>b…þS?*Óôÿ ÓÐü*h¥£ír¶ü UãS炟[AÐaè[ûª•õ&õj?†Éö+EzP—WeÒírJFt ‘BŒ†Ï‡%#tE Øz ¥OÛ«!1›üä±Í™%ºÍãö]°î(–:@<‹ŒÊö×òÆt¦ãº+‡¦%ÌÁ²h´OƒJŒtMÜ>ÀÜÊw3Y´•牋4ǍýʏTì>œú=Íwhyë,¾Ôò×õ¿ßÊa»«þˆѪQ|%6ž™A õ%:øj<>É—ÿ Å_ˆCbõ¥š±ý¯Ýƒï…¶|RëócÍf溪“t.СøTÿ *Ä¿-{†çàczůŽ_–^XþŒ±miB[X±d 1,é”zEù»& î9gœf™9Ð'.;—™i}!ôšåîqêÛ٤ёý£½ÆA–àôe"A$˝Úsäÿ ÷Û #°xŸëí(l »ý3—¥5m! rt`†0~'j2(]S¦¦kv,ÚÇ l¦øJA£Šƒ J3E8ÙiŽ:cÉžúeZ°€¯\®kÖ(79«Ž:¯X”¾³Š&¡* ….‰Ž(ÜíŸ2¥ª‡×Hi²TF¤ò[¨íÈRëÉ䢍mgÑ.Ÿ<öäS0í„ǹÁU´f#Vß;Õ–…P@3ío<ä-±»Ž.L|kªÀê›fÂ6@»eu‚|ÓaÞÆŸ…¨ááå>åŠ?cKü6ùTÍÆ”†sĤÚ;H2RÚ†õ\Ö·Ÿn'¾ ñ#ºI¤Å´%çÁ­‚â7›‹qT3Iï¨ÖÚ5I7Ë!ÅOóŸ¶øÝñØôת¦$Tcö‘[«Ö³šÒ';Aþ ¸èíg A2Z"i¸vdÄ÷.iõ®§)¿]¤À†–‡É&ä{V¶iŽ”.Ó×Õÿ û?h¬Mt–íª[ÿ Ñÿ ÌV(í}=ibÔ¡›¥¢±b Lô¥‡piη_Z<‡z§èŒ)iÖwiÇ 2hÙ3·=’d÷8éŽ1¦¸c¤µ€7›7Ø ð\á)} ¹fËí›pAÃL%âc2 í§æQz¿;T8sæ°qø)QFMð‰XŒÂ±N¢aF¨…8¯!U  Z©RÊ ÖPVÄÀÍin™Ì-GˆªÅËŠ›•zË}º±ŽÍFò¹}Uw×#ä5B¤{î}Ð<ÙD é©¤&‡ïDbàÁôMÁ." ¤‡ú*õ'VŽ|¼´Úgllº¼klz[Æüï÷Aób‡Eÿ dÑ»Xx9ÃÜ£ÁT/`¼¸vI±Ýµ·Ë‚“G³þ*Ÿû´r|*}<¨îºœ @¦mÄ’M¹”.œ«Y–|6ÏU¤jç¥ÕÞqO ˜kDÆÁ¨5ÿ š;ÐЦ¦€GÙk \ –Þ=â¼=SͧµªS°ÚÍpÜãQűÀõ¬?ÃÁ1Ñ•õZà?hóœ€ L¦l{Y*K˜Ù›zc˜–ˆâ ø+¾ ­-Ök¥%ùEÜA'}ˆ><ÊIè“bpÍ/qÞâvoX€w,\úªò6Z[XdÒæ­@Ö—€$òJí#é>'°Ú ôª˜<)4ryÙ£|óAÅn5žêŸyÒäMÝ2{"}‰–¤l÷ûWX\l¾Á¸góÉOÔ /óñB¤f¸çñ[.P˜ZsÊË*ßT܈§QN¢’¡¨§V¼(Üù*eÕ“”5T¨‹Âê¥FŒã½Dü[8'Ò¥a…Ú¶k7a *•›¼'Ò·\8¨ª\@\õ¢¦íq+DÙrmÎ…_ªæ»ŠÓœ¡¯’Ré9MÅ×D™lælffc+ŒÑ,ý™ÿ ¯þǤ=Å’Á7µ÷ÚÛ/“Ü€ñýã¼àí¾ÕÑ+ƒ,uµMâÀÄbm:ÒÎPæ{˜Gz[ƒ¯«® KHà`ߨŠéí¯P8Aq.C‰ à€kòpj´kN¶qô€…Õ,ÜNŠª-­{Zö’æû44‰sŽè‰îVíRœÕm" 6?³D9¡ÇTíÅꋇ`4«¸ÝÁô ï’ýorqКÇZ«x4Žâéþuïf¹µö[P ,Q£éaX±`PÉÍZ ¸äYúg üAx ’6Lê‚xÝÓ*äQ  Ï’¨hÍ =²,6ï#rÃ<¯–£»ƒ‹,–ê•€ aÛsñ'%Æ"®ÛüìBᝠHÚ3ß°©$“XnœÖ’î2ËTeûìxîß ¦å¿çÉ ðK§þ{‘t‚Ϋ¬jéîZ[ ”š7L¥4VÚCE×]m¤Øy”ä4-dz£œ§¸x.*ãÊÊ b÷•h:©‡¦s`BTÁRû¾g⻩‹jø sF¢àJøFl‘È•Xᓁà~*j¯ +(ÚÕ6-£¯÷GŠØy‚<Ç’.F‹Hœw(+)ÜÜâÈzÄäT§FߘãÏ;DmVœ3Àu@mÚüXÝü•3B¨òÌÁÛ<·ÃÜ z,Ì@õÅ·d2]ü8s÷IôÞ¯^Ç9¢u„~ëAŸï4«M? K]­ÅàPl@s_ p:°¬ZR”´›JC[CS.h‹ƒïËœ«Æ]–÷ó‚wR×k7X‰k›‘´ù¦=¡«‰¨¨Â')—71ó’c‡Ðúµ `é.{§p¹ój\Ž{1h{o±Ý=áUÊïGÖŒõ–-BÄm+AZX¶¡ ïHðæ¥JmÙ;…䡟ˆ¦ ° äšiÉg«$üMk5¤L“’çÊvïâï ,=f“"íἊ5ô¬x6{ɏžID0e¸vçmi'︧ºð9$ò¹÷*£’9ÿ ²TÔ…×>JV¥}Œ}$p[bÔ®*[jzS*8 ”·T›Í–ñUîƒwo$áè=LT™ç—~ô·¤ÈÚ$榍q‰„+´kFm)ž‹©i–ËqÞŠ‰à¶ü( ‚•§ •°ò·‡#5ª•µÊ﯅¡X¨šÁ*F#TXJÊ ušJVÍ&=iÄs1‚3•'fý§5Ñ<=[íÞ­ PÚ;ѱÌ_~Ä££8rÞ ²w;’hDT°>ÈG¬8Á²ÚzŽ®ò®qZcqJêäÞ-ö[ܘbň±çb“ж31²n×iƒðÕ;1¶þÉ ªX‰,ßqÏ$>•î íZ¥Z 1{ç൵+ƒÕµ¥°T$§K]á»Ûï*·¤tMI’ÂZbŽÕiÒ˜}bÓ0£ª5›¨ [5Ž^ÝœWøÂÝh° ¢OWun£¤5 a2Z.G2³YL]jåtì”ä ÁÓ‘%"©<Ôúʰsº UZvä‡ÄiÆÒM .÷V·™ø#kèýiíÌ–ª)µT[)BˆõÑ xB¾B€ÖT¨.¥~ð@VĶr#¸ü*åZNDŽH;âi ],©£öØpù(šºãö¼T.uCê•4@ÿ GÕÛ)Cx›®0ø#:ÏðFÒbR\(€€Ä®fã4Þ‰Fä¯HXƒÅ,†öEÑÔÜ]Öv²?tLÃvBY£ú6Êu5ÅAQ³1‘’¬x–HŒÐ‡ ^ ¸KwJôÖŽ5×CÚ¨vÜ«/B0$×k°=ðbÇ(Ï)w±A†Á† 11Í=èQšµ626ŒÜ/`G«µ<}—-Ö7KEHÈÉðóȤmݱû±·ø«Snmá=“䫚mݱŸ¡¶~ó·“äUóJæúòB|E LêŽy´jDÔ$G¢þÐñ7óR8ýÒ…Ç› WVe#·Ÿ p·Fx~•ݤF÷0Èÿ K¯æS<6’¡WШ; ´ÿ ¥Êø\Òuî†åÝ–VNœkÒ7oòX¨Á­Ø÷FÎÑä±g÷ÿ M~Çî=p,X´ ÝÌÚÅ‹’ÃjÖ.ØöÏñ qïQ¤ÓZE†° =6·]܈ s¸>v•Ž^Ý\wq9r‰Î\¸¡kURÒ$­*‹Nq?Þª*!sŠÆ:TU_u±T+øX¡ ®¹¡,ÄâÃBTsÜ$Ø›4m椴zÜK]’’›Pƒ @€#â˜`é¹=I‡fiV•Ôî“nRm+µFPOhÍ0B£ €+¬5c v•:P'ÒyÎ ‰V~‚Ó†ÖuókDoh$å\*ö%Ю=£«…aȼ½÷Û.-½VŒŠ¼'lyî±1¬3ó#ÞE¿ÔS¤gV£m›=§\û"—WU¤ÚǼÿ ÂnÁGŒÃ ‚õN D³õNÚíŒÕ;HôyÄÈ©P¹Ä{:?R‘Ô¨âF÷ø£bÅó® JS|‚R÷ivýáâ€Æé¡è³´IئÑT!§˜•ت‚¬â@q€wnïCWÄ@JU€ê¯m6]Ï:£âx'+ÒðXvÓ¦Úm=–´7œ $ì“B£~p%ÕŸUþ« N@¼üï~w˜ñø5®—'Ôe»¤5ã//€ž~‰Tþ›Å7•#¤× Íö pÄ$ùeåì*«ÓŠEØWEÈsßg ¦ûvžSsLpºÊW–âµEWöˬH; ™!CYõZ ÃÄf æ#1W. \uWâ\,\Çf j’<qTbên›Î[vxx£ë 'ö¨1›˜ÀM¼Pÿ H)ƒêêŒA7s,|F“ 꺸k³9Ìö*ç®;Ö!Ö$Eiž•¹ÒÚ†ýóéÝû¾ÕS®ó$’NÝäŸz¤5r¦ãÄÃD÷Üø!°ø‡Ô&@m™Ì^Ãä­d q5Lnÿ N;.6½·N|#ä"1Nƒx“ã<3('&ñßt  ~ªu”1Tb㫨9ê–›–bìd$ߣ=#ÕãÒmU¯eí$EFù5ýYô櫨æì™Ç—±ssM]·á¿0ÕåJRÓªîiƒ+O58ÖñªŠÒx" \µâá¨i’¤i —Ö ” M+M¤ë9‚‰A¦°Qõ¾ßøK~¼Ã‘g…Ö´~÷Ï[3GUœÒ½#…kàÔ®Ò”‰³·dWV‰IP‰Ú8u¹”E ÖqLj¾êÕCBš{A^Âß;–¨`¯¬ìö ˼ ×tìø.tƐm*n¨y4o&Àx¥n¦×î‡aupáÛj8¿m›è¶ã!o½;ß0y^ý×^EÑ¿ÒjzŒ­)vÚÑnÄL …^ªô× ‡—‚3k Îý­hï]içå–îÏ*÷ñþ»Ô CÒjøjÍznˆ´ ¹#b'Fô‹ ‰v¥'’à'T´ƒHýÍ%M‰ ƒ&ÆÇŒï1 ‘ –Þ ‰i¬s žR-Ÿ kЬá¬7:þ 0ŒÅÒÕ/aÙ¬ÃÝ#Úøœ ©aiVc‰. ¹¦ãµ” ›Yg¦›ÆÎýº°f³7ƒhá·¸­}&D9¡ÂsÉÙÞèŠõØàC™¨ñbFC|´Ü(ŸƒÚÒ-%»'a Ì¿)ËÇn¿úÿ ÞŽX…4ÊÅH^ôΑí@ù¹Eh¶“L8Çjù ¼ÎåVªóR©Ï5uà V4lZß®=€xÖŸ–ÑÈ ÷”¨°¾__yM1tÉ?uÆþIkÄgæ@þ[¢†°XÃJ£j·:nkÅ¢u ‘}âGzö­/IµèЬ¼48q¦F°ŽR¼=ûì{´¯RýicS ÕÛ íNtÍÙï£,w4rêì®»~x(©Uñ§#Ñ&œÕ¤>ÎåÍÓ9’Ö{9eV­[Öjâ²ãu]˜å2›qÑšÕJç0€sÄ|Êëè0튔bÁ>“{×_F`Ø©ºê:µä,v¤ðfc1±"«ÔÍän1#=· Âøv~H½ÐßA¾¿Ü€Óš]Õ; I¾÷ç‚Qi†î¹9ywÔKG˜áñ zQY—§ÃÕZ07§X‚ Áh;ÁM)iÌCH-¯T‘ë|A0{Ò½LÚ–TâÖkÜ’dÀ“rmm»”جPF³ÖcbE§T€ÒxKºû’Ó®7±²(\4ŽÃ¸Uu@j™yĵ;³µ!Á¢b.W¤=mõ´êµK k ¸K^ÜÛ#p*Ü14qkZç5ïë †°5Ï%ÍÛ<Õ¤×Ô¥ê†C Õ´¼ú$ƒÖ“”]Ù¬qÞÚ[4©ý!ûÏ—Áb쳐XµA¬â~`›Çr¸8ìùÝ䫦<>ä÷«?xs´ÇÑ /á;¹øüÊÈÙà{"@Žïzâ¬[âß‚ U_<ÇŸ½4èN˜ú61®qŠu ¦þF£»äJ_ˆÙÎ~ ÞAã–݄ϗrŠD;xTž‘ô`É«…suãO`?³à™ô Lý#Íc5öoæØ‚y´´÷«ZR§<&JÇ+éâô´€i!Àˆ0æAoàðLèÖ-2ŸõW.’t^–(KÁmHµV@xÜÇy®Ñø­â^:Ú3w· 7½¹°ñ¸â¹®:',«Mœ—n­Á+Ãbš LÈ‘ÄnRÓÅœ%¦²‰¨ùQ:¤f‚ "PÕtô¸…cæl…&˜Ú˜Ôkv‹ž+vŠ,=¢v­6—Xy*¥t£«<™:“aîϲ=¦6rO]XI¿Œ÷¤zÚ­›¶ 6÷”w\d ü~v®ˆÌk«^m<ÿ ¢‰Õ\)ùºŽ;… lîÙÅEŠ®cѾ@vnMÏ,¼“ñ•ŽBxðÃzãÇç%3ˆ"}Ù•Åî> BÉú;Ò]V+P˜F_´ßé> Øše|ï‡ÄOmFæÇ ãqÞ$/xÐx­z`ï9"œÜij‚!7.\Td…9M‡•iŽ‹¾‘50ÞŽn¥ß4ÉôO ¹*í^QêËÜÇÌ8=ާs‰'ÂëÙ«á%Pú[O †ÅP¯Vsް.‰,kc¶ ¬A9n˜XÎ-ÞšN["¹QÕ‰ƒMýÁߺXJæÍaLj¾×Ãmã¾ãÚ uñÒþåQô¦¥ /ÄUx:‚ÍÜ’ Đ©ØÝ3V¨‰ÕnÐ6ó*óúK­«…c ¯U òhsý­jóÔj#,ímŒRµ«lbïUTŒÑ8†Ä0œÏr`ð¡¬É Ї ë"À² ™ 6¥ f¶ ¢ÚoܱԷ-<Àî)†a¶ž'Ú»¨TXqØæ¶÷YÄHy˜9ÈIW­YÀuMFë ºÏ’AqÌ4·/Ú †ô'i$øä­=Ä Ý|öK×40è|È6p‘0§)o¥ctî§H+CA-“ xØ|ÐXАç l8íºð3Ø:³¤¬KX¯UÿÙ  &tWc@sddlZddlZddlZddlmZddlmZdejfdYZdejfdYZdejfd YZ d fd YZ d fd YZ dfdYZ dfdYZ dfdYZdZedkrejddndS(iN(tStringIO(tDummyRPCServertControllerTestscBs^eZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'RS(&cCsddlm}|S(Ni(t Controller(tsupervisor.supervisorctlR(tselfR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt_getTargetClass scCs|j|S(N(R(Rtoptions((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt_makeOne scCs6t}|j|}|j|j|jddS(Ns> (tDummyClientOptionsRt assertEqualtprompt(RRt controller((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_ctors cCs8t}|j|}|j}|j|tdS(N(R RtupcheckR tTrue(RRR tresult((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test__upchecks  cCsot}d|jj_|j|}t|_|j}|j|t |j|jj ddS(NcWsdS(Ns1.0((tx((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttsvSorry, this version of supervisorctl expects to talk to a server with API version 3.0, but the remote version is 1.0. ( R t_servert supervisort getVersionRRtstdoutRR tFalsetgetvalue(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt"test__upcheck_wrong_server_versions   cst}ddlmddlmfd}||jj_|j|}t |_ |j }|j |t |j |j jddS(Ni(tFault(tFaultscsjddS(Ntduh(tUNKNOWN_METHOD((RR(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR+ssSorry, supervisord responded but did not recognize the supervisor namespace commands that supervisorctl uses to control it. Please check that the [rpcinterface:supervisor] section is enabled in the configuration file (see sample.conf). (R t xmlrpclibRtsupervisor.xmlrpcRRRRRRRRR RR(RRRR R((RRsG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest__upcheck_unknown_method's   cslt}ddlmfd}||jj_|j|}t|_|j t j |j dS(Ni(RcstjjddS(NR(R RtFAILED(targtkw(R(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pytf=s( R R!RRRRRRRt assertRaisesR RR(RRR&R ((RsG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt*test__upcheck_reraises_other_xmlrpc_faults:s  cst}ddlddlfd}||jj_|j|}t|_|j }|j |t |jj }|j d|kdS(NicsjjddS(Ns nobody home(terrort ECONNREFUSED(R$R%(terrnotsocket(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt raise_faultHssrefused connection(R R,R+RRRRRRRR RRt assertTrue(RRR-R Rtoutput((R+R,sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt/test__upcheck_catches_socket_error_ECONNREFUSEDDs     cst}ddlddlfd}||jj_|j|}t|_|j }|j |t |jj }|j d|kdS(NicsjjddS(Ns nobody home(R)tENOENT(R$R%(R+R,(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR-Yss no such file(R R,R+RRRRRRRR RRR.(RRR-R RR/((R+R,sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt)test__upcheck_catches_socket_error_ENOENTUs     cswt}ddlddlfd}||jj_|j|}t|_|j j |j dS(NicsjjddS(NR(R)tEBADF(R$R%(R+R,(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR&js( R R,R+RRRRRRR'R)R(RRR&R ((R+R,sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt*test__upcheck_reraises_other_socket_faultsfs    cCsrt}|j|}t|_t}|f|j_|jd}|j|d|j|j t dS(Nthelp( R RRRt DummyPluginRtpluginstonecmdR tNonethelpedR(RRR tpluginR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_onecmdqs   cCst}|j|}t|_t}|f|j_|jd}|j|d|j|j dg|j|j t dS(Ns help; helps help( R RRRR6RR7R8R R9tcmdqueueR:R(RRR R;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_onecmd_multi_colonseparated{s   cCst}|j|}t|_t}|f|j_t|_|j d|j |jt|_|j d|j |jdS(NR5R( R RRRR6RR7RR:R8R.t assertFalse(RRR R;((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt.test_onecmd_empty_does_not_repeat_previous_cmds       cCsQt}|j|}t|_i|_|jd|j|jddS(NR5(R RRRt_complete_infoR8R R9(RRR ((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt#test_onecmd_clears_completion_caches     cCst}|j|}t|_dg|_|jdddd}|j|d|jdddd}|j|ddS(NR5Ritlineshelp i(R RRRtvocabtcompleteR R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_complete_action_emptys   cCst}|j|}t|_dg|_|jdddd}|j|d|jdddd}|j|ddS(NR5thiRCshelp i(R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_complete_action_partials   cCs\t}|j|}t|_dg|_|jdddd}|j|ddS(NR5iRCshelp (R RRRRDRER (RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_complete_action_wholes    cCsPt}|j|}t|_|jdddd}|j|ddS(NtbadiRC(R RRRRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt*test_complete_unknown_action_uncompletables   cCs_t}|j|}t|_ddg|_|jdddd}|j|ddS(NR5taddRiRCsbad (R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt.test_complete_unknown_action_arg_uncompletables   cCst}|j|}t|_ddg|_|jdddd}|j|d|jdddd}|j|d|jdd dd}|j|ddS( NR5tstartRiRCshelp isstart i(R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_complete_help_emptys  cCst}|j|}t|_ddg|_|jdddd}|j|d|jdddd}|j|ddS( NR5RNtheiRCshelp heshelp i(R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_complete_help_actions  cCst}|j|}t|_ddg|_|jdddd}|j|d|jdddd}|j|d |jdd dd}|j|d |jdd dd}|j|d |jdddd}|j|ddS(NR5RNRiRCsstart sfoo isbar is baz:baz_01 isbaz:* i(R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_complete_start_emptys  cCst}|j|}t|_ddg|_|jdddd}|j|d|jdddd}|j|ddS( NR5RNR&iRCsstart fsfoo i(R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_complete_start_no_colons  cCst}|j|}t|_ddg|_|jdddd}|j|d|jdddd}|j|d |jdd dd}|j|ddS( NR5RNsfoo:iRCs start foo:sfoo:foo isfoo:* i(R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_complete_start_with_colons  cCs_t}|j|}t|_ddg|_|jdddd}|j|ddS(NR5RNRJiRCs start bad(R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt!test_complete_start_uncompletables   cCst}|j|}t|_ddg|_|jdddd}|j|dd}||jj j _ |jdddddS( NR5RNRiRCsstart c_stddS(Ns(should not have called getAllProcessInfo(t Exception(R$R%((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR&si( R RRRRDREtassertNotEqualR9RRRtgetAllProcessInfo(RRR RR&((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt!test_complete_caches_process_info s   cCst}|j|}t|_ddg|_|jdddd}|j|d|jdddd}|j|d |jdd dd}|j|d |jdd dd}|j|ddS( NR5RLRiRCsadd sfoo isbar isbaz i(R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_complete_add_emptys  cCs_t}|j|}t|_ddg|_|jdddd}|j|ddS(NR5RLRJiRCsadd bad(R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_complete_add_uncompletable$s   cCst}|j|}t|_ddg|_|jdddd}|j|d|jdddd}|j|ddS( NR5RLR&iRCsadd fsfoo i(R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_complete_add_group,s  cCs_t}|j|}t|_ddg|_|jdddd}|j|ddS(NR5treloadRiRCsreload (R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt&test_complete_reload_arg_uncompletable6s   cCst}|j|}t|_ddg|_|jdddd}|j|d|jdddd}|j|ddS( NR5RNR&iRCs help;start fsfoo i(R RRRRDRER R9(RRR R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt*test_complete_semicolon_separated_commands>s  cCs/t}|j|}|j|jddS(Ns*** No help on %s(R RR tnohelp(RRR ((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_nohelpHs cCsft}|j|}t|_|jd}|jj}|j|d|j|ddS(NRs foo helped(R RRRtdo_helpRR R9(RRR tresultsthelpval((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_do_helpMs  cCsit}|j|}t|_|jd}|j|d|jj}|jd|kdS(NR5shelp Print a list( R RRRRbR R9RR.(RRR RcRd((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_do_help_for_helpVs  cCsGt}|j|}|j}|jj}|j||dS(N(R Rtget_supervisortgetServerProxyRR (RRR tproxytexpected((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt<test_get_supervisor_returns_serverproxy_supervisor_namespace_s   cCsDt}|j|}|j}|j}|j||dS(N(R Rtget_server_proxyRhR (RRR RiRj((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt6test_get_server_proxy_with_no_args_returns_serverproxygs    cCsJt}|j|}|jd}|jj}|j||dS(Ntsystem(R RRlRhRnR (RRR RiRj((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt;test_get_server_proxy_with_namespace_returns_that_namespaceos  cCshddlm}g}|}|jt|jdkg|_|j|dt|j|dS(Ni(t ClientOptionsitdoc(tsupervisor.optionsRpR.tlent searchpathstrealizet__doc__R(RRptargsR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt#test_real_controller_initializationws  ((t__name__t __module__RRR RRR"R(R0R2R4R<R>R@RBRFRHRIRKRMRORQRRRSRTRURYRZR[R\R^R_RaReRfRkRmRoRx(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRsL                    tTestControllerPluginBasecBs,eZdZdZdZdZRS(cCsddlm}|S(Ni(tControllerPluginBase(RR|(RR|((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRscOs7|j}t}t|}||||}|S(N(RR tDummyController(RR$R%tklassRtctlR;((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRs    cCs|j}|jd}|j|d|j|jjjd|jt|jjd|jjd}|j|dd|j|dg|j|dd|j|dddS( Ns iis%unnamed commands (type help ):iiiiP( RRbR9R RRRRsttopics_printed(RR;Rttopics((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_do_help_noargs cCsg|j}|jd}|j|d|j|jjjd|jt|jjddS(Ntfoosno help on foo i( RRbR R9RRRRsR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_do_help_withargs  (RyRzRRRR(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR{s   tTestDefaultControllerPlugincBseZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d(Z*d)Z+d*Z,d+Z-d,Z.d-Z/d.Z0d/Z1d0Z2d1Z3d2Z4d3Z5d4Z6d5Z7d6Z8d7Z9d8Z:d9Z;d:Z<d;Z=d<Z>d=Z?d>Z@d?ZAd@ZBdAZCdBZDdCZEdDZFdEZGdFZHdGZIdHZJdIZKdJZLdKZMdLZNdMZOdNZPdOZQdPZRdQZSdRZTdSZUdTZVdUZWdVZXdWZYdXZZdYZ[dZZ\d[Z]d\Z^d]Z_d^Z`d_Zad`ZbdaZcdbZddcZeddZfdeZgdfZhdgZidhZjdiZkdjZldkZmdlZndmZodnZpdoZqdpZrdqZsdrZtdsZudtZvduZwdvZxdwZydxZzdyZ{dzZ|d{Z}d|Z~d}Zd~ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZRS(cCsddlm}|S(Ni(tDefaultControllerPlugin(RR(RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRscOs7|j}t}t|}||||}|S(N(RR R}(RR$R%R~RRR;((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRs    cCs^|j}|jd}|j|d|jjjjd}|j|dddS(NRs isError: too few arguments(Rtdo_tailR R9RRRtsplit(RR;Rtlines((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_tail_toofewargss  cCs^|j}|jd}|j|d|jjjjd}|j|dddS(Nsone two three fours isError: too many arguments(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_tail_toomanyargss  cCs^|j}|jd}|j|d|jjjjd}|j|dddS(Ns-fs is!Error: tail requires process name(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_tail_f_noprocnames  cCs^|j}|jd}|j|d|jjjjd}|j|dddS(Ns-z foos isError: bad argument -z(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_tail_bad_modifiers  cCst|j}|jd}|j|d|jjjjd}|jt|d|j|dddS(NRs i is output line( RRR R9RRRRRs(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_tail_defaultss  cCst|j}|jd}|j|d|jjjjd}|jt|d|j|dddS(NtNO_FILEs iisNO_FILE: ERROR (no log file)( RRR R9RRRRRs(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_tail_no_files  cCst|j}|jd}|j|d|jjjjd}|jt|d|j|dddS(NR#s iis)FAILED: ERROR (unknown error reading log)( RRR R9RRRRRs(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_tail_faileds  cCst|j}|jd}|j|d|jjjjd}|jt|d|j|dddS(NtBAD_NAMEs iis&BAD_NAME: ERROR (no such process name)( RRR R9RRRRRs(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_tail_bad_names  cCst|j}|jd}|j|d|jjjjd}|jt|d|j|dddS(Ns-10 foos iis tput line( RRR R9RRRRRs(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_tail_bytesmodifiers  cCst|j}|jd}|j|d|jjjjd}|jt|d|j|dddS(Ns foo stdouts i is output line( RRR R9RRRRRs(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt,test_tail_explicit_channel_stdout_nomodifiers  cCst|j}|jd}|j|d|jjjjd}|jt|d|j|dddS(Ns foo stderrs i is output line( RRR R9RRRRRs(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt,test_tail_explicit_channel_stderr_nomodifiers  cCsW|j}|jd}|j|d|jjjj}|j|ddS(Ns foo fudgesError: bad channel 'fudge'(RRR R9RRRtstrip(RR;Rtvalue((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt'test_tail_explicit_channel_unrecognizeds  cCs?|j}|j|jjj}|jd|kdS(Ns status (Rt help_statusRRRR.(RR;tout((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_status_help s  cCsg|j}|jd}|j|d|jjjjd}|j|djdddS(NRs itRUNNINGi!( Rt do_statusR R9RRRRtindex(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt*test_status_table_process_column_min_widths  cCs|j}|jj}d}||jj_|j|jdd|jj j j d}|j|dj dd|j|dj dddS(Nc_sddlm}i ddd6dd6dd6|jd 6d d 6d d 6d d6dd6d d6dd6i dd6dd6dd6|jd 6d d 6d d 6d d6dd6d d6dd6gS(Ni(t ProcessStatesRi2tnametgroupi tpidtstateRt statenameiRNtstopRtspawnerrtnowsfoo descriptiont descriptiontbari sbar description(tsupervisor.statesRRtFATAL(R$R%R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR&s,  Rs iRii( RRRRRRXR RR9RRRR(RR;RR&R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt(test_status_table_process_column_expandss   cCs|j}|jd}|j|d|jjjjd}|j|djdddddg|j|djddd d d g|j|djddd d dgdS(NRs iiRRsfoo descriptioniRRsbar descriptions baz:baz_01tSTOPPEDsbaz description(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_status_all_processes_no_arg9s cCs|j}|jd}|j|d|jjjjd}|j|djdddddg|j|djddd d d g|j|djddd d dgdS(Ntalls iiRRsfoo descriptioniRRsbar descriptions baz:baz_01Rsbaz description(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt!test_status_all_processes_all_argEs cCsl|j}|jd}|j|d|jjjj}|j|jdddddgdS(NRiRsfoo description( RRR R9RRRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_status_process_nameQs  cCss|j}|jd}|j|d|jjjjd}|j|djdddddgdS(Nsbaz:*s iis baz:baz_01Rsbaz description(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_status_group_nameYs  cCs|j}|jd}|j|d|jjjjd}|j|djdddddg|j|djddd d d gdS( Ns foo baz:*s iiRRsfoo descriptionis baz:baz_01Rsbaz description(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_status_mixed_namesas cCs^|j}|jd}|j|d|jjjjd}|j|dddS(Ns badgroup:*s isbadgroup: ERROR (no such group)(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_status_bad_group_nameks  cCs^|j}|jd}|j|d|jjjjd}|j|dddS(Nt badprocesss is#badprocess: ERROR (no such process)(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_status_bad_process_namers  cCs^|j}|jd}|j|d|jjjjd}|j|dddS(Nsbadgroup:badprocesss is,badgroup:badprocess: ERROR (no such process)(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt'test_status_bad_process_name_with_groupys  cCs?|j}|j|jjj}|jd|kdS(Ns start (Rt help_startRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_helps  cCs^|j}|jd}|j|dd}|j|jjjjdd|dS(NRs$Error: start requires a process names i(Rtdo_startR R9RRRR(RR;RRj((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_fails  cCsK|j}|jd}|j|d|j|jjjddS(NRs"BAD_NAME: ERROR (no such process) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_badnames  cCsK|j}|jd}|j|d|j|jjjddS(NRsNO_FILE: ERROR (no such file) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_no_files  cCsK|j}|jd}|j|d|j|jjjddS(NtNOT_EXECUTABLEs/NOT_EXECUTABLE: ERROR (file is not executable) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_not_executables  cCsK|j}|jd}|j|d|j|jjjddS(NtALREADY_STARTEDs)ALREADY_STARTED: ERROR (already started) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_alreadystarteds  cCsK|j}|jd}|j|d|j|jjjddS(Nt SPAWN_ERRORs!SPAWN_ERROR: ERROR (spawn error) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_spawnerrors  cCsQ|j}|jd}|j|dd}|j|jjj|dS(NtABNORMAL_TERMINATIONs3ABNORMAL_TERMINATION: ERROR (abnormal termination) (RRR R9RRR(RR;RRj((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_abnormalterminations  cCsK|j}|jd}|j|d|j|jjjddS(NRs foo: started (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_one_successs  cCsK|j}|jd}|j|d|j|jjjddS(Nsfoo:foos foo: started (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt&test_start_one_with_group_name_successs  cCsK|j}|jd}|j|d|j|jjjddS(Nsfoo barsfoo: started bar: started (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_manys  cCsK|j}|jd}|j|d|j|jjjddS(Nsfoo:s(foo:foo_00: started foo:foo_01: started (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_groups  cCsK|j}|jd}|j|d|j|jjjddS(Ns BAD_NAME:s BAD_NAME: ERROR (no such group) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_group_bad_names  cCsK|j}|jd}|j|d|j|jjjddS(NRsDfoo: started foo2: started failed_group:failed: ERROR (spawn error) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_start_alls  cCs?|j}|j|jjj}|jd|kdS(Ns stop (Rt help_stopRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_stop_helps  cCsX|j}|jd}|j|d|j|jjjjddddS(NRs is#Error: stop requires a process name(Rtdo_stopR R9RRRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_stop_fails  "cCsK|j}|jd}|j|d|j|jjjddS(NRs"BAD_NAME: ERROR (no such process) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_stop_badnames  cCsK|j}|jd}|j|d|j|jjjddS(Nt NOT_RUNNINGs!NOT_RUNNING: ERROR (not running) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_stop_notrunnings  cCsK|j}|jd}|j|d|j|jjjddS(NR#sFAILED (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_stop_faileds cCsK|j}|jd}|j|d|j|jjjddS(NRs foo: stopped (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_stop_one_successs  cCsK|j}|jd}|j|d|j|jjjddS(Nsfoo:foos foo: stopped (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt%test_stop_one_with_group_name_successs  cCsK|j}|jd}|j|d|j|jjjddS(Nsfoo barsfoo: stopped bar: stopped (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_stop_manys  cCsK|j}|jd}|j|d|j|jjjddS(Nsfoo:s(foo:foo_00: stopped foo:foo_01: stopped (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_stop_groups  cCsK|j}|jd}|j|d|j|jjjddS(Ns BAD_NAME:s BAD_NAME: ERROR (no such group) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_stop_group_bad_name%s  cCsK|j}|jd}|j|d|j|jjjddS(NRsHfoo: stopped foo2: stopped failed_group:failed: ERROR (no such process) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_stop_all,s  csu|j}d|j_gfd}|jjjj}||_||_|jd|j gdS(NcSstS(N(R(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR7RcsjtdS(N(tappendR(R$R%(tcalled(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR&9sR( RRRRRRtstopAllProcesseststopProcessGroupRR (RR;R&R((RsG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_stop_upcheck_failed5s    cCs?|j}|j|jjj}|jd|kdS(Nssignal (Rt help_signalRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_helpAs  cCs^|j}|jd}|j|dd}|j|jjjjdd|dS(NRs7Error: signal requires a signal name and a process names i(Rt do_signalR R9RRRR(RR;Rtmsg((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_fail_no_argGs  cCs^|j}|jd}|j|dd}|j|jjjjdd|dS(Nthups7Error: signal requires a signal name and a process names i(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_fail_one_argNs  cCsK|j}|jd}|j|d|j|jjjddS(NsBAD_SIGNAL foosfoo: ERROR (bad signal name) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_bad_signalUs  cCsK|j}|jd}|j|d|j|jjjddS(Ns HUP BAD_NAMEs"BAD_NAME: ERROR (no such process) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_bad_name\s  cCsK|j}|jd}|j|d|j|jjjddS(Ns HUP BAD_NAME:s BAD_NAME: ERROR (no such group) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_bad_groupcs  cCsK|j}|jd}|j|d|j|jjjddS(NsHUP NOT_RUNNINGs!NOT_RUNNING: ERROR (not running) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_not_runningjs  cCsK|j}|jd}|j|d|j|jjjddS(Ns HUP FAILEDsFAILED (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_failedqs cCsK|j}|jd}|j|d|j|jjjddS(NsHUP foosfoo: signalled (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_one_successws cCsK|j}|jd}|j|d|j|jjjddS(Ns HUP foo barsfoo: signalled bar: signalled (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_many}s  cCsK|j}|jd}|j|d|j|jjjddS(NsHUP foo:s,foo:foo_00: signalled foo:foo_01: signalled (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_groups  cCsK|j}|jd}|j|d|j|jjjddS(NsHUP allsLfoo: signalled foo2: signalled failed_group:failed: ERROR (no such process) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_alls  csu|j}d|j_gfd}|jjjj}||_||_|jd|j gdS(NcSstS(N(R(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRRcsjtdS(N(RR(R$R%(R(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR&ssterm foo( RRRRRRtsignalAllProcessestsignalProcessGroupRR (RR;R&R((RsG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_signal_upcheck_faileds    cCs?|j}|j|jjj}|jd|kdS(Nsrestart (Rt help_restartRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_restart_helps  cCsX|j}|jd}|j|d|j|jjjjddddS(NRs is&Error: restart requires a process name(Rt do_restartR R9RRRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_restart_fails  "cCsK|j}|jd}|j|d|j|jjjddS(NRsfoo: stopped foo: started (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_restart_ones  cCsK|j}|jd}|j|d|j|jjjddS(NRsfoo: stopped foo2: stopped failed_group:failed: ERROR (no such process) foo: started foo2: started failed_group:failed: ERROR (spawn error) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_restart_alls  cCs?|j}|j|jjj}|jd|kdS(Ns clear (Rt help_clearRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_clear_helps  cCsX|j}|jd}|j|d|j|jjjjddddS(NRs is$Error: clear requires a process name(Rtdo_clearR R9RRRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_clear_fails  "cCsK|j}|jd}|j|d|j|jjjddS(NRs"BAD_NAME: ERROR (no such process) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_clear_badnames  cCsK|j}|jd}|j|d|j|jjjddS(NRs foo: cleared (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_clear_one_successs  cCsK|j}|jd}|j|d|j|jjjddS(Nsfoo:foos foo: cleared (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt!test_clear_one_with_group_successs  cCsK|j}|jd}|j|d|j|jjjddS(Nsfoo barsfoo: cleared bar: cleared (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_clear_manys  cCsK|j}|jd}|j|d|j|jjjddS(NRs?foo: cleared foo2: cleared failed_group:failed: ERROR (failed) (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_clear_alls  cCs?|j}|j|jjj}|jd|kdS(Ns open (Rt help_openRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_open_helps  cCsK|j}|jd}|j|d|j|jjjddS(Ntbadnames&ERROR: url must be http:// or unix:// (Rtdo_openR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_open_fails  cCs|j}|jd}|j|d|jjjjd}|j|djdddddg|j|djddd d d g|j|djddd d dgdS(Nshttp://localhost:9002s iiRRsfoo descriptioniRRsbar descriptions baz:baz_01Rsbaz description(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_open_succeeds cCs?|j}|j|jjj}|jd|kdS(Ns*Show the version of the remote supervisord(Rt help_versionRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_version_help s  cCs9|j}|jd|j|jjjddS(Ns3000 (Rt do_versionR9R RRR(RR;((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_versions  cCs?|j}|j|jjj}|jd|kdS(NsRestart the remote supervisord(Rt help_reloadRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_reload_helps  cCsc|j}|jj}t|jj_|jd}|j|d|j|jjj tdS(NR( RRRRRRt _restartablet do_reloadR R9t _restarted(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_reload_fails   cCsT|j}|jj}|jd}|j|d|j|jjjt dS(NR( RRRRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_reload%s   cCs?|j}|j|jjj}|jd|kdS(Ns Shut the remote supervisord down(Rt help_shutdownRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_shutdown_help,s  cCsT|j}|jj}|jd}|j|d|j|jjjt dS(NR( RRRt do_shutdownR R9RRt _shutdownR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_shutdown2s   cs|j}ddlmddlfd}||jjjj_|jd}|j |d|j |jj j ddS(Ni(txmlrpccsjjjddS(Ntbye(RRtSHUTDOWN_STATE(R$R%(RR (sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR->sRsERROR: already shutting down ( RRRR RRRtshutdownRR R9RR(RR;R-R((RR sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt1test_shutdown_catches_xmlrpc_fault_shutdown_state9s  csl|j}ddlmddlfd}||jjjj_|jj |j ddS(Ni(RcsjjjddS(Ntouch(RRt CANT_REREAD(R$R%(RR (sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR-LsR( RRRR RRRRR'RR(RR;R-((RR sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt*test_shutdown_reraises_other_xmlrpc_faultsGs   cs|j}ddlddlfd}||jjjj_|jd}|j |d|jj j }|j d|kdS(NicsjjddS(Ns nobody home(R)R*(R$R%(R+R,(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR-XsRs'refused connection (already shut down?)(RR,R+RRRRRRR R9RRR.(RR;R-RR/((R+R,sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt/test_shutdown_catches_socket_error_ECONNREFUSEDSs   cs|j}ddlddlfd}||jjjj_|jd}|j |d|jj j }|j d|kdS(NicsjjddS(Nsno file(R)R1(R$R%(R+R,(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR-gsRs!no such file (already shut down?)(RR,R+RRRRRRR R9RRR.(RR;R-RR/((R+R,sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt)test_shutdown_catches_socket_error_ENOENTbs   csh|j}ddlddlfd}||jjjj_|jj |j ddS(NicsjjddS(Ntdenied(R)tEPERM(R$R%(R+R,(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR-vsR( RR,R+RRRRRR'R)R(RR;R-((R+R,sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt*test_shutdown_reraises_other_socket_errorsqs    cCsE|j}|jdgdgdgg|jggggdS(Ntaddedtchangedtremoved(Rt_formatChanges(RR;((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest__formatChanges}s cCs?|j}|j|jjj}|jd|kdS(Ns'Reload the daemon's configuration files(Rt help_rereadRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_reread_helps  csm|j}gfd|_|jd}|j|d|jddgdgdggdS(Ncs j|S(N(R(R(tcalls(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRRiR&R'R((RR)t do_rereadR9R (RR;R((R-sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_rereads  csm|j}ddlmfd}||jjjj_|jd|j |jj j ddS(Ni(RcstjjjddS(Ntcant(R RRR(R$R%(R(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt reloadConfigss ERROR: cant ( RRRRRRR1R.R9R RR(RR;R1((RsG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_reread_cant_rereads  csm|j}ddlmfd}||jjjj_|jd|j |jj j ddS(Ni(RcstjjjddS(NR(R RRR(R$R%(R(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR1ss ERROR: supervisor shutting down ( RRRRRRR1R.R9R RR(RR;R1((RsG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_reread_shutdown_states  cs]|j}ddlmfd}||jjjj_|jtj |j ddS(Ni(RcstjjjddS(NR(R RRR#(R$R%(R(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR1sR( RRRRRRR1R'R RR.(RR;R1((RsG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt!test_reread_reraises_other_faultss  cCsidd6dd6td6td6dd6dd 6}|j}|j|}|jd |kidd6dd6td6td6dd6dd 6}|j|}|jd |kdS( Ntgroup1Rtprocess1Rtinuset autostartit process_priot group_priosin usetavail(RRt_formatConfigInfoR.R(RtinfoR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest__formatConfigInfos"     cCs?|j}|j|jjj}|jd|kdS(NsDisplay all configured(Rt help_availRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_avail_helps  csog}|j}dtfdYfd|j_|j|j_|jd}|j|ddS(NtFakeSupervisorcBseZdZRS(cSs1idd6dd6td6td6dd6dd 6gS( NR5RR6RR7R8iR9R:(R(R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pytgetAllConfigInfos(RyRzRB(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRAscsS(N(((RA(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRRR( RtobjectRRgRR/tdo_availR R9(RR-R;R((RAsG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_avails cCso|j}|jjjj}d}||_|jd}|j|d|j|jj j ddS(NcSs,ddlm}tj|jjddS(Ni(RR(RRR RRR(R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRBsRs ERROR: supervisor shutting down ( RRRRRRBRDR R9RR(RR;RRBR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_avail_shutdown_states   cCsM|j}|jjjj}d}||_|jtj|j ddS(NcSs,ddlm}tj|jjddS(Ni(RR(RRR RRR#(R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRBsR( RRRRRRBR'R RRD(RR;RRB((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_avail_reraises_other_faultss    cCs?|j}|j|jjj}|jd|kdS(Ns add (Rthelp_addRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_add_helps  cCsW|j}|jd}|j|d|jjjj}|j|jdgdS(NR( Rtdo_addR R9RRRRt processes(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_adds  cCsK|j}|jd}|j|d|j|jjjddS(Nt ALREADY_ADDEDs$ERROR: process group already active (RRJR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_add_already_addeds  cCsK|j}|jd}|j|d|j|jjjddS(NRs'ERROR: no such process/group: BAD_NAME (RRJR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_add_bad_names  cCsK|j}|jd}|j|d|j|jjjddS(NRsERROR: shutting down (RRJR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_add_shutdown_state s  cCs)|j}|jtj|jddS(NR#(RR'R RRJ(RR;((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_add_reraises_other_faultss cCs?|j}|j|jjj}|jd|kdS(Ns remove (Rt help_removeRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_remove_helps  cCs`|j}|jjjj}dg|_|jd}|j|d|j|jgdS(NR( RRRRRRKt do_removeR R9(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_removes   cCsi|j}|jjjj}dg|_|jd}|j|d|j|jj j ddS(NRRs'ERROR: no such process/group: BAD_NAME ( RRRRRRKRTR R9RR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_remove_bad_name"s  cCsi|j}|jjjj}dg|_|jd}|j|d|j|jj j ddS(NRt STILL_RUNNINGs2ERROR: process/group still running: STILL_RUNNING ( RRRRRRKRTR R9RR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_remove_still_running+s  cCs)|j}|jtj|jddS(NR#(RR'R RRT(RR;((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt!test_remove_reraises_other_faults4s cCs?|j}|j|jjj}|jd|kdS(NsReload config and add/remove(Rt help_updateRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_update_help8s  cCsc|j}|jjjj}d}||_dg|_|jd|j|jdgdS(NcSs8ddlm}ddl}|j|jjddS(Ni(Rtblah(RRR RRR(RR ((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR1As R(R( RRRRRR1RKt do_updateR (RR;RR1((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_update_not_on_shutdown>s     cCsi|j}|jjjj}d}||_|jd}|j|d|j|j dgdS(NcSsdgggggS(Ntnew_proc((((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR1NsRR_( RRRRRR1R]R R9RK(RR;RR1R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_update_added_procsJs   cCsg|j}|jjjj}d}||_ddg|_|jd|jt |jt ddg|jd|jt |jt ddddg|jd|jt |jt dddgddg|_|jd|jt |jt ddgddg|_|jd|jt |jt dddgdS( NcSsddgdgdgggS(Ntadded1tadded2R'R(((((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR1ZsR'R(s added1 added2RaRbsremoved added1R( RRRRRR1RKR]R tsorted(RR;RR1((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_update_with_gnameVs,        csddlm}|j}|jjjj}gd}||_fd|_|jdidd6dd6|j j d 6d d 6gfd }||_ |j d |j dg|jdg(idd6dd6|j jd 6d d 6idd6dd6|j jd 6d d 6g(|j d |j dg|jdg(idd6dd6|j jd 6d d 6idd6dd6|j j d 6d d 6g(|j d |j dgdS(Ni(RcSsgdggggS(Nt changed_group((((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR1}scsjd|fS(NRN(R(R(R-(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRRRetchanged_processRRtstatusR\Rcsjd|fS(NR(R(R(R-Rc(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRsRRtchanged_process1tchanged_process2(RRe(RRe(RRe(RRRRRRR1t startProcesstaddProcessGroupRtSUCCESSRR]R RR#(RRR;RR1R((R-RcsG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_update_changed_procsvsP                     csfddlm}|j}|jjjj}d}||_idd6dd6|jjd6d d 6gdg|_ fd }||_ |j d |j |j gidd6dd6|jj d6d d 6g(dg|_ |j d |j |j gidd6dd6|jjd6d d 6g(dg|_ |j d |j |j dgdS( Ni(RcSsggdgggS(Nt removed_group((((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR1stremoved_processRRnRRgR\RcsS(N((R(Rc(sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRsR(RRRRRRR1RRlRKRR]R RR#(RRR;RR1R((RcsG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_update_removed_procss8                 cCsM|j}|jjjj}d}||_|jtj|j ddS(NcSs,ddlm}tj|jjddS(Ni(RR#(RRR RRR#(R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR1sR( RRRRRR1R'R RR](RR;RR1((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt!test_update_reraises_other_faultss    cCs?|j}|j|jjj}|jd|kdS(Ns pid (Rthelp_pidRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_pid_helps  cCs|j}|jd}|j|d|jj}|jjjjd}|jt |d|j|dt |j j j dS(NRs ii(Rtdo_pidR R9RRRRRRststrRRtgetPID(RR;RRR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_pid_supervisords  cCsf|j}|jd}|j|d|jjjj}|j|jdddgdS(NRt11t12t13( RRtR R9RRRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_pid_allprocessess  cCsW|j}|jd}|j|d|jjjj}|j|ddS(NRsNo such process BAD_NAME(RRtR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_pid_badnames  cCsQ|j}|jd}|j|d|j|jjjjddS(NRRx(RRtR R9RRRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_pid_oneprocesss cCs?|j}|j|jjj}|jd|kdS(Ns tail of supervisor main log file(Rt help_maintailRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_maintail_helps  cCsZ|j}|jd}|j|d|jjj}|j|jd|dS(Nsfoo barsError: too many( Rt do_maintailR R9RRRR.t startswith(RR;Rtval((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_maintail_toomanyargss  cCsZ|j}|jd}|j|d|jjj}|j|jd|dS(Ns-wrongsError: bad argument -wrong( RRR R9RRRR.R(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_maintail_minus_string_failss  cCsZ|j}|jd}|j|d|jjj}|j|jd|dS(NtwrongsError: bad argument wrong( RRR R9RRRR.R(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_maintail_wrongs  cCs|j}t|_|jd}|j|d|jj}|jt|d|d}|j|jjd|j|ddx%dD]}|j ||dkqWdS(Ns-fiis"http://localhost:65532/mainlogtailsCannot connects socket.error(sCannot connects socket.error( Rt DummyListenertlistenerRR R9terrorsRstclosedR.(RR;RRR)R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt_dont_test_maintail_dashfs      cCs^|j}|jd}|j|d|jjjjd}|j|dddS(Ns-zs isError: bad argument -z(RRR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_maintail_bad_modifier/s  cCsK|j}|jd}|j|d|j|jjjddS(NRs mainlogdata (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_maintail_nobytes6s cCsK|j}|jd}|j|d|j|jjjddS(Ns-100s mainlogdata (RRR R9RRR(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_maintail_dashbytes<s cCsy|j}|jj}ddlm}|jj|_|jd}|j |d|j |jj j ddS(Ni(Rs-100s!supervisord: ERROR (no log file) ( RRRgRRRRt_readlog_errorRR R9RR(RR;tsupervisor_rpcRR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt"test_maintail_readlog_error_nofileBs cCsy|j}|jj}ddlm}|jj|_|jd}|j |d|j |jj j ddS(Ni(Rs-100s/supervisord: ERROR (unknown error reading log) ( RRRgRRRR#RRR R9RR(RR;RRR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt"test_maintail_readlog_error_failedLs cCs?|j}|j|jjj}|jd|kdS(Ns fg (Rthelp_fgRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_fg_helpVs  cCs^|j}|jd}|j|d|jjjjd}|j|dddS(NRs isError: no process name supplied(Rtdo_fgR R9RRRR(RR;RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_fg_too_few_args\s  cCsQ|j}|jd}|j|d|jjj}|j|ddS(Nsfoo bars'Error: too many process names supplied (RRR R9RRR(RR;RRC((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_fg_too_many_argscs  cCsQ|j}|jd}|j|d|jjj}|j|ddS(NRs!Error: bad process name supplied (RRR R9RRR(RR;RRC((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_fg_badprocnamejs  cCs|j}|jd}|j|d|jjj}|j|d|jd}|jjjjd}|j|d|j|dddS(NRsError: process not running tbaz_01s isError: process not running(RRR R9RRRR(RR;RRCR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_fg_procnotrunningqs cCs?|j}|j|jjj}|jd|kdS(NsExit the supervisor shell(Rt help_exitRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_exit_help|s  cCs?|j}|j|jjj}|jd|kdS(NsExit the supervisor shell(Rt help_quitRRRR.(RR;R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyttest_quit_helps  (RyRzRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR R RRRRRRR R!R"R%R*R,R/R2R3R4R>R@RERFRGRIRLRNRORPRQRSRURVRXRYR[R^R`RdRmRpRqRsRwR{R|R}RRRRRRRRRRRRRRRRR(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRs                 !                                                                               5 )                 RcBs#eZdZdZdZRS(cCs g|_dS(N(R(R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt__init__scCs|jj||fdS(N(RR(RturlR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR)scCs ||_dS(N(R(RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pytcloses(RyRzRR)R(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRs  tDummyPluginFactorycBseZdZdZRS(cKs ||_dS(N(R(RRR%((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRscCs|jjjddS(Ns foo helped(RRtwrite(RR$((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRbs(RyRzRRb(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRs R cBseZdZdZRS(cCsdd|_d|_d|_d|_d|_d|_t|_t |_ dt ifg|_ dS(NRshttp://localhost:65532tchrismt123tdummy(( R t serverurltusernametpasswordR9t history_fileR7RRRt interactiveRtplugin_factories(R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRs        cCs|jS(N(R(R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRhs(RyRzRRh(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR s R}cBsGeZdZdZdZdZddZdZdZ RS(s no help on %scCs"||_g|_t|_dS(N(RRRR(RR((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRs  cCstS(N(R(R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRscCs |jdS(NR(Rl(R((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRgscCs0|jj}|dkr|St||SdS(N(RRhR9tgetattr(Rt namespaceRi((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRls cCs|jj|ddS(Ns (RR(Rtdata((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR/scCs |jj||||fdS(N(RR(Rt doc_headerstcmds_doctrowstcols((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt print_topicssN( RyRzR`RRRgR9RlR/R(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR}s     R6cBseZddZdZRS(cCs ||_dS(N(R(RR ((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRscCs t|_dS(N(RR:(RR$((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyRbsN(RyRzR9RRb(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyR6s cCstjtjtS(N(tunittestt findTestCasestsystmodulesRy(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyt test_suitest__main__t defaultTestR(RRR Rtsupervisor.tests.baseRtTestCaseRR{RRRR R}R6RRytmain(((sG/usr/lib/python2.7/dist-packages/supervisor/tests/test_supervisorctl.pyts(   }