+
    Df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'     kkm*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    
 kkm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     kkm56Z#.r   c                   < V ^8  d   QhRR/# r	   r   )r   r   s   "r   r   r   ,        6 6d 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    
 kkm<=./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     kkm%![)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     kkm78OOC 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8X.. C8r   