+
    üÐj

  ã                   ód   € R t ^ RIHt ^ RIHt ^ RIHt ^ RIH	t	  ! R R]	P                  4      tR# )z)
Tests for L{twisted.runner.procmontap}.
)Ú
UsageError)Ú
procmontap)ÚProcessMonitor)Úunittestc                   ó¢   a € ] tR t^t o RtV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR	 ltV 3R
 lR lt	V 3R lR lt
V 3R lR ltRtV tR# )ÚProcessMonitorTapTestszQ
Tests for L{twisted.runner.procmontap}'s option parsing and makeService
method.
c                ó   <€ V ^8„  d   QhRR/# ©é   ÚreturnN© )ÚformatÚ__classdict__s   "€ÚE/usr/lib/python3/dist-packages/twisted/runner/test/test_procmontap.pyÚ__annotate__Ú#ProcessMonitorTapTests.__annotate__   s   ø€ ÷ <ñ <¨$ñ <ó    c                ór   € \         P                  ! 4       pV P                  \        VP                  . 4       R# )z.
The command line arguments must be provided.
N)ÚtapÚOptionsÚassertRaisesr   ÚparseOptions©ÚselfÚopts   & r   Útest_commandLineRequiredÚ/ProcessMonitorTapTests.test_commandLineRequired   s'   € ô �kŠk‹mˆØ×Ñœ* c×&6Ñ&6¸Ö;r   c                ó   <€ V ^8„  d   QhRR/# r	   r   )r   r   s   "€r   r   r      s   ø€ ÷ 0ñ 0 ñ 0r   c                óˆ   € \         P                  ! 4       pVP                  . RO4       V P                  VR,          R4       R# )zI
The threshold option is recognised as a parameter and coerced to
float.
Ú	thresholdç      @N)z--thresholdú7.5Úfoo©r   r   r   ÚassertEqualr   s   & r   Útest_thresholdÚ%ProcessMonitorTapTests.test_threshold   s3   € ô
 �kŠk‹mˆØ×ÑÒ6Ô7Ø×Ñ˜˜[Õ)¨3Ö/r   c                ó   <€ V ^8„  d   QhRR/# r	   r   )r   r   s   "€r   r   r   $   s   ø€ ÷ /ñ /˜tñ /r   c                óˆ   € \         P                  ! 4       pVP                  . RO4       V P                  VR,          R4       R# )zH
The killtime option is recognised as a parameter and coerced to float.
Úkilltimer    N)z
--killtimer!   r"   r#   r   s   & r   Útest_killTimeÚ$ProcessMonitorTapTests.test_killTime$   s2   € ô �kŠk‹mˆØ×ÑÒ5Ô6Ø×Ñ˜˜Z�¨#Ö.r   c                ó   <€ V ^8„  d   QhRR/# r	   r   )r   r   s   "€r   r   r   ,   ó   ø€ ÷ 6ñ 6 dñ 6r   c                óˆ   € \         P                  ! 4       pVP                  . RO4       V P                  VR,          R4       R# )zO
The minrestartdelay option is recognised as a parameter and coerced to
float.
Úminrestartdelayr    N)z--minrestartdelayr!   r"   r#   r   s   & r   Útest_minRestartDelayÚ+ProcessMonitorTapTests.test_minRestartDelay,   ó4   € ô
 �kŠk‹mˆØ×ÑÒ<Ô=Ø×Ñ˜Ð.Õ/°Ö5r   c                ó   <€ V ^8„  d   QhRR/# r	   r   )r   r   s   "€r   r   r   5   r-   r   c                óˆ   € \         P                  ! 4       pVP                  . RO4       V P                  VR,          R4       R# )zO
The maxrestartdelay option is recognised as a parameter and coerced to
float.
Úmaxrestartdelayr    N)z--maxrestartdelayr!   r"   r#   r   s   & r   Útest_maxRestartDelayÚ+ProcessMonitorTapTests.test_maxRestartDelay5   r2   r   c                ó   <€ V ^8„  d   QhRR/# r	   r   )r   r   s   "€r   r   r   >   s   ø€ ÷ 	7ñ 	7¨ñ 	7r   c                ó  € \         P                  ! 4       pVP                  R.4       V P                  VR,          ^4       V P                  VR,          ^4       V P                  VR,          ^4       V P                  VR,          R4       R# )z(
The parameters all have default values
r"   r   r)   r/   r5   i  Nr#   r   s   & r   Útest_parameterDefaultsÚ-ProcessMonitorTapTests.test_parameterDefaults>   st   € ô �kŠk‹mˆØ×Ñ˜%˜Ô!Ø×Ñ˜˜[Õ)¨1Ô-Ø×Ñ˜˜Z�¨!Ô,Ø×Ñ˜Ð.Õ/°Ô3Ø×Ñ˜Ð.Õ/°Ö6r   c                ó   <€ V ^8„  d   QhRR/# r	   r   )r   r   s   "€r   r   r   I   s   ø€ ÷ 8ñ 8 $ñ 8r   c                óæ   € \         P                  ! 4       pVP                  . RO4       \         P                  ! V4      pV P	                  V\
        4       V P                  RVP                  4       R# )z@
The command line gets added as a process to the ProcessMontor.
zping -c 3 8.8.8.8N)Úpingz-cÚ3z8.8.8.8)r   r   r   ÚmakeServiceÚassertIsInstancer   ÚassertInÚ	processes)r   r   Úss   &  r   Útest_makeServiceÚ'ProcessMonitorTapTests.test_makeServiceI   sO   € ô �kŠk‹mˆØ×ÑÒ7Ô8Ü�OŠO˜CÓ ˆØ×Ñ˜a¤Ô0Ø�‰Ð)¨1¯;©;Ö7r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r%   r*   r0   r6   r:   rE   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r   r      sP   ø‡ € ñ÷
<ð <÷0ð 0÷/ð /÷6ð 6÷6ð 6÷	7ð 	7÷8ö 8r   r   N)rK   Útwisted.python.usager   Útwisted.runnerr   r   Útwisted.runner.procmonr   Útwisted.trialr   ÚTestCaser   r   r   r   Ú<module>rS      s,   ðñõ ,Ý ,Ý 1Ý "ôC8˜X×.Ñ.ö C8r   