| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/twisted/internet/test/ |
Upload File : |
ó
¹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&