Current Path : /usr/lib/python2.7/dist-packages/twisted/internet/test/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/internet/test/test_serialport.pyc |
ó ¹7¬Nc @ s§ d Z d d l m Z d d l m Z d d l m Z d d l m Z y d d l m Z Wn e k rs d Z n Xd e f d „ ƒ YZ d e j f d „ ƒ YZ d S( s+ Tests for L{twisted.internet.serialport}. iÿÿÿÿ( t unittest( t Failure( t Protocol( t ConnectionDone( t serialportt DoNothingc B s e Z d Z d „ Z d „ Z RS( s. Object with methods that do nothing. c O s d S( N( ( t selft argst kwargs( ( sI /usr/lib/python2.7/dist-packages/twisted/internet/test/test_serialport.pyt __init__ s c C s d „ S( Nc _ s d S( N( t None( R R ( ( sI /usr/lib/python2.7/dist-packages/twisted/internet/test/test_serialport.pyt <lambda> s ( ( R t attr( ( sI /usr/lib/python2.7/dist-packages/twisted/internet/test/test_serialport.pyt __getattr__ s ( t __name__t __module__t __doc__R R ( ( ( sI /usr/lib/python2.7/dist-packages/twisted/internet/test/test_serialport.pyR s t SerialPortTestsc B s, e Z d Z e d k r! d Z n d „ Z RS( st Minimal testing for Twisted's serial port support. See ticket #2462 for the eventual full test suite. s% Serial port support is not available.c s¥ d t j f d „ ƒ Y} g ‰ d t f ‡ f d † ƒ Y} | | ƒ d d t ƒ ƒ} | j ˆ d g ƒ t t ƒ ƒ } | j | ƒ | j ˆ d d | f g ƒ d S( sr C{connectionMade} and C{connectionLost} are called on the protocol by the C{SerialPort}. t DummySerialPortc B s e Z e Z d „ Z RS( c S s d S( N( ( R ( ( sI /usr/lib/python2.7/dist-packages/twisted/internet/test/test_serialport.pyt _finishPortSetup5 s ( R R R t _serialFactoryR ( ( ( sI /usr/lib/python2.7/dist-packages/twisted/internet/test/test_serialport.pyR 2 s t SerialProtocolc s&