+
    üÐjv  ã                   ó\   € R t ^ RIt^ RIHt ^ RIHtHt ^ RIHt ^ RI	H
t
  ! R R]
4      tR# )z6
Test that twisted scripts can be invoked as modules.
N)ÚStringIO)ÚdeferÚreactor)ÚAccumulator)ÚTestCasec                   ó6   a € ] tR t^t o RtR tR tR tRtV t	R# )Ú	MainTestsz4Test that twisted scripts can be invoked as modules.c                ób  a a€ \         P                  p\        4       o\        P                  ! 4       ;pSn        \        P                  ! SWRRR.RR7       SP                  P                  4        ^ RI
Hp S P                  \         RVP                  R.4       VV 3R lpVP                  V4      # )	z0Invoking python -m twisted should execute twist.ú-mÚtwistedú--helpN©Úenv©Ú__main__Úargvc                 ój   <€ SP                   pVP                  4       pSP                  R V9   V4       R# )s,   -m twisted [options] plugin [plugin_options]N©ÚoutFÚgetvalueÚ
assertTrue©ÚignÚfÚoutputÚpÚselfs   &  €€Ú8/usr/lib/python3/dist-packages/twisted/test/test_main.pyÚprocessEndedÚ,MainTests.test_twisted.<locals>.processEnded!   s-   ø€ Ø—‘ˆAØ—Z‘Z“\ˆFà�O‰OØ?À6ÑIÈ6öó    )ÚsysÚ
executabler   r   ÚDeferredÚendedDeferredr   ÚspawnProcessÚ	transportÚ
closeStdinr   r   ÚpatchÚ__file__ÚaddCallback©r   ÚcmdÚdr   r   r   s   f    @r   Útest_twistedÚMainTests.test_twisted   s‡   ù€ ä�n‰nˆÜ‹MˆÜ#ŸnšnÓ.Ð.ˆˆAŒOÜ×Ò˜Q ¨4°¸HÐ%EÈ4ÕPØ	�‰×ÑÔ õ 	%à�
‰
”3˜ ×!2Ñ!2°HÐ =Ô>ö	ð �}‰}˜\Ó*Ð*r    c                ób  a a€ \         P                  p\        4       o\        P                  ! 4       ;pSn        \        P                  ! SWRRR.RR7       SP                  P                  4        ^ RI
Hp S P                  \         RVP                  R.4       VV 3R lpVP                  V4      # )	z6Invoking python -m twisted.trial should execute trial.r
   ztwisted.trialr   Nr   r   r   c                 ój   <€ SP                   pVP                  4       pSP                  R V9   V4       R# )s   -j, --jobs= Nr   r   s   &  €€r   r   Ú*MainTests.test_trial.<locals>.processEnded8   s*   ø€ Ø—‘ˆAØ—Z‘Z“\ˆFà�O‰O˜O¨vÑ5°vÖ>r    )r!   r"   r   r   r#   r$   r   r%   r&   r'   Útwisted.trialr   r(   r)   r*   r+   s   f    @r   Ú
test_trialÚMainTests.test_trial+   sˆ   ù€ ä�n‰nˆÜ‹MˆÜ#ŸnšnÓ.Ð.ˆˆAŒOÜ×Ò˜Q ¨4°À(Ð%KÐQUÕVØ	�‰×ÑÔ õ 	+à�
‰
”3˜ ×!2Ñ!2°HÐ =Ô>ö	?ð �}‰}˜\Ó*Ð*r    c                óæ   € \        4       pV P                  \        RV4      p^ RIpV P	                  VP
                  4       VP                  4        V P                  VP                  4       R4       R# )z2Importing twisted.__main__ does not execute twist.ÚstdoutNÚ )	r   r(   r!   Útwisted.__main__r   r   ÚrestoreÚassertEqualr   )r   r   Úmonkeyr   s   &   r   Útest_twisted_importÚMainTests.test_twisted_import@   sQ   € ä“ˆØ—‘œC ¨6Ó2ˆãà�‰˜×(Ñ(Ô)à�‰ÔØ×Ñ˜Ÿ™Ó*¨BÖ/r    © N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r.   r4   r=   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      s   ø‡ € Ù>ò+ò.+÷*
0ð 
0r    r   )rD   r!   Úior   Útwisted.internetr   r   Útwisted.test.test_processr   Útwisted.trial.unittestr   r   r?   r    r   Ú<module>rL      s'   ðñó
 Ý ç +Ý 1Ý +ô90�ö 90r    