%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/test_serialport.cpython-312.pyc |
� Ϫ�f� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z eZ G d� d � Z G d � dej � Zy# e$ r dZ Y �)w xY w)z+ Tests for L{twisted.internet.serialport}. � )�ConnectionDone)�Protocol)�Failure)�unittest)� serialportNc � � e Zd ZdZd� Zd� Zy)� DoNothingz. Object with methods that do nothing. c � � y �N� )�self�args�kwargss �G/usr/lib/python3/dist-packages/twisted/internet/test/test_serialport.py�__init__zDoNothing.__init__ s � �� c � � d� S )Nc � � y r r )r r s r �<lambda>z'DoNothing.__getattr__.<locals>.<lambda> s � r r )r �attrs r �__getattr__zDoNothing.__getattr__ s � �+�+r N)�__name__� __module__�__qualname__�__doc__r r r r r r r s � �� �,r r c � � e Zd ZdZe�dZd� Zy)�SerialPortTestszt 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 �( �� G d� dt j � }g � G �fd�dt � } | |� dt � �� }| j �dg� t t � � }|j |� | j �dd|fg� y ) zr C{connectionMade} and C{connectionLost} are called on the protocol by the C{SerialPort}. c � � e Zd ZeZd� Zy)�@SerialPortTests.test_connectionMadeLost.<locals>.DummySerialPortc � � y r r )r s r �_finishPortSetupzQSerialPortTests.test_connectionMadeLost.<locals>.DummySerialPort._finishPortSetup5 s � �r N)r r r r �_serialFactoryr"