+
    üÐjÅ  ã                   ó¨   € R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt  ^ RI	H
t ]t
 ! R R4      t ! R	 R
]P                  4      tR#   ] d    Rt
 L,i ; i)z+
Tests for L{twisted.internet.serialport}.
)ÚConnectionDone)ÚProtocol)ÚFailure)Úunittest)Ú
serialportNc                   ó0   a € ] tR t^t o RtR tR tRtV tR# )Ú	DoNothingz&
Object with methods that do nothing.
c                ó   € R # ©N© )ÚselfÚargsÚkwargss   &*,ÚG/usr/lib/python3/dist-packages/twisted/internet/test/test_serialport.pyÚ__init__ÚDoNothing.__init__   s   € Ùó    c                ó   € R  # )c                  ó   € R # r
   r   )r   r   s   *,r   Ú<lambda>Ú'DoNothing.__getattr__.<locals>.<lambda>   s   € ¡tr   r   )r   Úattrs   &&r   Ú__getattr__ÚDoNothing.__getattr__   s   € Ù+Ð+r   r   N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r      s   ø‡ € ñò÷,ð ,r   r   c                   ó6   a € ] tR t^!t o Rt]f   RtR tRtV t	R# )ÚSerialPortTestszh
Minimal testing for Twisted's serial port support.

See ticket #2462 for the eventual full test suite.
Nz%Serial port support is not available.c                ó,  a€  ! R R\         P                  4      p. o ! V3R lR\        4      pV! V! 4       R\        4       R7      pV P	                  SR.4       \        \        4       4      pVP                  V4       V P	                  SRRV3.4       R	# )
zZ
C{connectionMade} and C{connectionLost} are called on the protocol by
the C{SerialPort}.
c                   ó*   a € ] tR t^2t o ]tR tRtV tR# )Ú@SerialPortTests.test_connectionMadeLost.<locals>.DummySerialPortc                ó   € R # r
   r   )r   s   &r   Ú_finishPortSetupÚQSerialPortTests.test_connectionMadeLost.<locals>.DummySerialPort._finishPortSetup5   s   € Ùr   r   N)	r   r   r   r   r   Ú_serialFactoryr)   r   r    r!   s   @r   ÚDummySerialPortr'   2   s   ø‡ € Ø&ˆN÷ð r   r,   c                   ó:   <a € ] tR t^:t o V3R ltV3R ltRtV tR# )Ú?SerialPortTests.test_connectionMadeLost.<locals>.SerialProtocolc                ó*   <€ SP                  R 4       R# )ÚconnectionMadeN©Úappend)r   Úeventss   &€r   r0   ÚNSerialPortTests.test_connectionMadeLost.<locals>.SerialProtocol.connectionMade;   s   ø€ Ø—‘Ð.Ö/r   c                ó.   <€ SP                  R V34       R# )ÚconnectionLostNr1   )r   Úreasonr3   s   &&€r   r6   ÚNSerialPortTests.test_connectionMadeLost.<locals>.SerialProtocol.connectionLost>   s   ø€ Ø—‘Ð/°Ð8Ö9r   r   N)r   r   r   r   r0   r6   r   r    )r"   r3   s   @€r   ÚSerialProtocolr.   :   s   ù‡ € õ0÷:ó :r   r9   Ú )Úreactorr0   r6   N)r   Ú
SerialPortr   r   ÚassertEqualr   r   r6   )r   r,   r9   ÚportÚfr3   s   &    @r   Útest_connectionMadeLostÚ'SerialPortTests.test_connectionMadeLost+   sŠ   ø€ ô	œj×3Ñ3ô 	ð ˆ÷	:œXô 	:ñ ™~Ó/°¼Y»[ÔIˆØ×Ñ˜Ð"2Ð!3Ô4ô ”NÓ$Ó%ˆØ×Ñ˜AÔØ×Ñ˜Ð"2Ð5EÀqÐ4IÐ!JÖKr   r   )
r   r   r   r   r   r   Úskipr@   r   r    r!   s   @r   r$   r$   !   s#   ø‡ € ñð ÒØ6ˆ÷Lð Lr   r$   )r   Útwisted.internet.errorr   Útwisted.internet.protocolr   Útwisted.python.failurer   Útwisted.trialr   Útwisted.internetr   Ú_serialportÚImportErrorr   ÚTestCaser$   r   r   r   Ú<module>rK      s[   ðñõ 2Ý .Ý *Ý "ðÝ:ð €J÷	,ñ 	,ô'L�h×'Ñ'ö 'Løð% ô Ø‚Jðús   œA Á	AÁA