Current Path : /usr/lib/python2.7/dist-packages/twisted/internet/test/ |
Current File : //usr/lib/python2.7/dist-packages/twisted/internet/test/test_win32events.pyc |
6Mc @ s d Z d d l m Z y d d l Z Wn e k r? d Z n Xd d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d e f d YZ d e f d YZ e j e j d S( s6 Tests for implementations of L{IReactorWin32Events}. i( t get_identN( t verifyObject( t isInIOThread( t IReactorWin32Events( t Deferred( t ReactorBuildert Listenerc B sX e Z d Z e Z d Z Z Z d Z d Z d Z d Z d Z d Z RS( s L{Listener} is an object that can be added to a L{IReactorWin32Events} reactor to receive callback notification when a Windows event is set. It records what thread its callback is invoked in and fires a Deferred. @ivar success: A flag which is set to C{True} when the event callback is called. @ivar logThreadID: The id of the thread in which the C{logPrefix} method is called. @ivar eventThreadID: The id of the thread in which the event callback is called. @ivar connLostThreadID: The id of the thread in which the C{connectionLost} method is called. @ivar _finished: The L{Deferred} which will be fired when the event callback is called. c C s | | _ d S( N( t _finished( t selft finished( ( sJ /usr/lib/python2.7/dist-packages/twisted/internet/test/test_win32events.pyt __init__/ s c C s t | _ d S( NR ( R t logThreadID( R ( ( sJ /usr/lib/python2.7/dist-packages/twisted/internet/test/test_win32events.pyt logPrefix3 s c C s) t | _ t | _ | j j d d S( N( t Truet successR t eventThreadIDR t callbackt None( R ( ( sJ /usr/lib/python2.7/dist-packages/twisted/internet/test/test_win32events.pyt occurred8 s c C s t d d S( Ns Some problem( t RuntimeError( R ( ( sJ /usr/lib/python2.7/dist-packages/twisted/internet/test/test_win32events.pyt brokenOccurred>