Module Expr Str ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias If CompareIsNot Call NameLoad Str NameLoad body ImportFrom alias orelse Assign NameStore NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases body FunctionDef arguments args NameParam defaults body Raise Call AttributeLoad NameLoad attr decorator_list decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args TupleStore NameStore NameStore NameStore defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpBitAnd NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad keyword ListLoad Lambda arguments args defaults vararg Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body FunctionDef arguments args defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad FunctionDef arguments args NameParam NameParam NameParam defaults body FunctionDef arguments args defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body TryExcept body Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad orelse Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num NameLoad Assign NameStore BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Import alias Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body FunctionDef arguments args defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args TupleStore NameStore NameStore NameStore defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpBitAnd NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults vararg body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr keyword ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args TupleStore NameStore NameStore NameStore defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpBitAnd NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults vararg body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr keyword ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr keyword ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpAdd NameLoad ListLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A 
Tests for the inotify wrapper in L{twisted.internet.inotify}.
 twisted.internet defer reactor twisted.python filepath runtime twisted.python.reflect requireModule twisted.trial unittest N/A N/A N/A requireModule twisted.python._inotify None N/A twisted.internet inotify N/A N/A inotify None INotifyTests N/A N/A unittest TestCase N/A N/A 
    Define all the tests for the basic functionality exposed by
    L{inotify.INotify}.
     N/A N/A N/A N/A N/A runtime platform supportsINotify N/A N/A skip This platform doesn't support INotify. setUp N/A N/A self N/A N/A N/A N/A self dirname N/A N/A filepath FilePath N/A N/A self mktemp N/A N/A N/A N/A self dirname createDirectory N/A N/A self inotify N/A N/A inotify INotify N/A N/A N/A N/A self inotify startReading N/A N/A N/A self addCleanup N/A N/A self inotify loseConnection N/A test_initializationErrors N/A N/A self N/A N/A N/A 
        L{inotify.INotify} emits a C{RuntimeError} when initialized
        in an environment that doesn't support inotify as we expect it.

        We just try to raise an exception for every possible case in
        the for loop in L{inotify.INotify._inotify__init__}.
         FakeINotify N/A N/A init N/A N/A self N/A N/A N/A N/A N/A inotify INotifyError N/A N/A N/A N/A N/A self patch N/A inotify INotify _inotify N/A FakeINotify N/A N/A N/A self assertRaises N/A inotify INotifyError N/A inotify INotify N/A _notificationTest N/A N/A self mask operation expectedPath N/A None N/A N/A 
        Test notification from some filesystem operation.

        @param mask: The event mask to use when setting up the watch.

        @param operation: A function which will be called with the
            name of a file in the watched directory and which should
            trigger the event.

        @param expectedPath: Optionally, the name of the path which is
            expected to come back in the notification event; this will
            also be passed to C{operation} (primarily useful when the
            operation is being done to the directory itself, not a
            file in it).

        @return: A L{Deferred} which fires successfully when the
            expected event has been received or fails otherwise.
         N/A N/A expectedPath None N/A N/A expectedPath N/A N/A N/A self dirname child foo.bar N/A notified N/A N/A defer Deferred cbNotified N/A N/A N/A watch filename events N/A N/A N/A N/A N/A self assertEqual filename expectedPath N/A N/A N/A self assertTrue N/A events mask N/A N/A N/A N/A notified addCallback cbNotified N/A N/A N/A N/A self inotify watch N/A self dirname mask mask callbacks N/A N/A N/A N/A N/A args N/A N/A notified callback args N/A N/A operation expectedPath N/A notified N/A test_access N/A N/A self N/A N/A N/A 
        Reading from a file in a monitored directory sends an
        C{inotify.IN_ACCESS} event to the callback.
         operation N/A N/A path N/A N/A N/A N/A N/A path setContent foo N/A N/A N/A path getContent N/A N/A N/A N/A self _notificationTest N/A inotify IN_ACCESS operation N/A test_modify N/A N/A self N/A N/A N/A 
        Writing to a file in a monitored directory sends an
        C{inotify.IN_MODIFY} event to the callback.
         operation N/A N/A path N/A N/A N/A fObj N/A N/A path open w N/A N/A N/A fObj write foo N/A N/A N/A fObj close N/A N/A N/A N/A self _notificationTest N/A inotify IN_MODIFY operation N/A test_attrib N/A N/A self N/A N/A N/A 
        Changing the metadata of a file in a monitored directory
        sends an C{inotify.IN_ATTRIB} event to the callback.
         operation N/A N/A path N/A N/A N/A N/A N/A path touch N/A N/A N/A path touch N/A N/A N/A N/A self _notificationTest N/A inotify IN_ATTRIB operation N/A test_closeWrite N/A N/A self N/A N/A N/A 
        Closing a file which was open for writing in a monitored
        directory sends an C{inotify.IN_CLOSE_WRITE} event to the
        callback.
         operation N/A N/A path N/A N/A N/A fObj N/A N/A path open w N/A N/A N/A fObj close N/A N/A N/A N/A self _notificationTest N/A inotify IN_CLOSE_WRITE operation N/A test_closeNoWrite N/A N/A self N/A N/A N/A 
        Closing a file which was open for reading but not writing in a
        monitored directory sends an C{inotify.IN_CLOSE_NOWRITE} event
        to the callback.
         operation N/A N/A path N/A N/A N/A N/A N/A path touch N/A fObj N/A N/A path open r N/A N/A N/A fObj close N/A N/A N/A N/A self _notificationTest N/A inotify IN_CLOSE_NOWRITE operation N/A test_open N/A N/A self N/A N/A N/A 
        Opening a file in a monitored directory sends an
        C{inotify.IN_OPEN} event to the callback.
         operation N/A N/A path N/A N/A N/A fObj N/A N/A path open w N/A N/A N/A fObj close N/A N/A N/A N/A self _notificationTest N/A inotify IN_OPEN operation N/A test_movedFrom N/A N/A self N/A N/A N/A 
        Moving a file out of a monitored directory sends an
        C{inotify.IN_MOVED_FROM} event to the callback.
         operation N/A N/A path N/A N/A N/A fObj N/A N/A path open w N/A N/A N/A fObj close N/A N/A N/A path moveTo N/A N/A filepath FilePath N/A N/A self mktemp N/A N/A N/A N/A self _notificationTest N/A inotify IN_MOVED_FROM operation N/A test_movedTo N/A N/A self N/A N/A N/A 
        Moving a file into a monitored directory sends an
        C{inotify.IN_MOVED_TO} event to the callback.
         operation N/A N/A path N/A N/A N/A p N/A N/A filepath FilePath N/A N/A self mktemp N/A N/A N/A p touch N/A N/A N/A p moveTo path N/A N/A N/A N/A self _notificationTest N/A inotify IN_MOVED_TO operation N/A test_create N/A N/A self N/A N/A N/A 
        Creating a file in a monitored directory sends an
        C{inotify.IN_CREATE} event to the callback.
         operation N/A N/A path N/A N/A N/A fObj N/A N/A path open w N/A N/A N/A fObj close N/A N/A N/A N/A self _notificationTest N/A inotify IN_CREATE operation N/A test_delete N/A N/A self N/A N/A N/A 
        Deleting a file in a monitored directory sends an
        C{inotify.IN_DELETE} event to the callback.
         operation N/A N/A path N/A N/A N/A N/A N/A path touch N/A N/A N/A path remove N/A N/A N/A N/A self _notificationTest N/A inotify IN_DELETE operation N/A test_deleteSelf N/A N/A self N/A N/A N/A 
        Deleting the monitored directory itself sends an
        C{inotify.IN_DELETE_SELF} event to the callback.
         operation N/A N/A path N/A N/A N/A N/A N/A path remove N/A N/A N/A N/A self _notificationTest N/A inotify IN_DELETE_SELF operation expectedPath N/A self dirname N/A test_moveSelf N/A N/A self N/A N/A N/A 
        Renaming the monitored directory itself sends an
        C{inotify.IN_MOVE_SELF} event to the callback.
         operation N/A N/A path N/A N/A N/A N/A N/A path moveTo N/A N/A filepath FilePath N/A N/A self mktemp N/A N/A N/A N/A self _notificationTest N/A inotify IN_MOVE_SELF operation expectedPath N/A self dirname N/A test_simpleSubdirectoryAutoAdd N/A N/A self N/A N/A N/A 
        L{inotify.INotify} when initialized with autoAdd==True adds
        also adds the created subdirectories to the watchlist.
         _callback N/A N/A wp filename mask N/A N/A _ N/A N/A N/A N/A N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A self inotify _isWatched subdir N/A N/A N/A d callback None N/A N/A N/A Exception N/A N/A N/A N/A d errback N/A N/A N/A N/A reactor callLater 0 _ N/A N/A checkMask N/A N/A inotify IN_ISDIR N/A inotify IN_CREATE N/A N/A N/A N/A self inotify watch N/A self dirname mask checkMask autoAdd True callbacks N/A _callback N/A subdir N/A N/A N/A self dirname child test N/A d N/A N/A defer Deferred N/A N/A N/A subdir createDirectory N/A d N/A test_simpleDeleteDirectory N/A N/A self N/A N/A N/A 
        L{inotify.INotify} removes a directory from the watchlist when
        it's removed from the filesystem.
         N/A calls N/A _callback N/A N/A wp filename mask N/A N/A _ N/A N/A N/A N/A N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A self inotify _isWatched subdir N/A N/A N/A subdir remove N/A N/A N/A Exception N/A N/A N/A N/A d errback N/A _eb N/A N/A N/A N/A N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A N/A self inotify _isWatched subdir N/A N/A N/A d callback None N/A N/A N/A Exception N/A N/A N/A N/A d errback N/A N/A N/A calls N/A N/A N/A N/A calls append filename N/A N/A N/A reactor callLater 0 _ N/A N/A N/A N/A reactor callLater 0 _eb N/A N/A checkMask N/A N/A inotify IN_ISDIR N/A inotify IN_CREATE N/A N/A N/A N/A self inotify watch N/A self dirname mask checkMask autoAdd True callbacks N/A _callback N/A subdir N/A N/A N/A self dirname child test N/A d N/A N/A defer Deferred N/A N/A N/A subdir createDirectory N/A d N/A test_ignoreDirectory N/A N/A self N/A N/A N/A 
        L{inotify.INotify.ignore} removes a directory from the watchlist
         N/A N/A N/A N/A self inotify watch N/A self dirname autoAdd True N/A N/A N/A self assertTrue N/A N/A N/A self inotify _isWatched N/A self dirname N/A N/A N/A N/A self inotify ignore N/A self dirname N/A N/A N/A self assertFalse N/A N/A N/A self inotify _isWatched N/A self dirname N/A test_humanReadableMask N/A N/A self N/A N/A N/A 
        L{inotify.humaReadableMask} translates all the possible event
        masks to a human readable string.
         N/A N/A mask value N/A inotify _FLAG_TO_HUMAN N/A N/A N/A N/A self assertEqual N/A N/A N/A inotify humanReadableMask mask N/A 0 value N/A checkMask N/A N/A N/A inotify IN_CLOSE_WRITE N/A inotify IN_ACCESS N/A inotify IN_OPEN N/A N/A N/A self assertEqual N/A set N/A N/A inotify humanReadableMask checkMask N/A set N/A close_write access open N/A test_recursiveWatch N/A N/A self N/A N/A N/A 
        L{inotify.INotify.watch} with recursive==True will add all the
        subdirectories under the given path to the watchlist.
         N/A subdir N/A N/A N/A self dirname child test N/A subdir2 N/A N/A subdir child test2 N/A subdir3 N/A N/A subdir2 child test3 N/A N/A N/A subdir3 makedirs N/A dirs N/A subdir subdir2 subdir3 N/A N/A N/A N/A self inotify watch N/A self dirname recursive True N/A N/A N/A N/A self inotify watch N/A self dirname recursive True N/A d dirs N/A N/A N/A N/A self assertTrue N/A N/A N/A self inotify _isWatched d N/A test_connectionLostError N/A N/A self N/A N/A N/A 
        L{inotify.INotify.connectionLost} if there's a problem while closing
        the fd shouldn't raise the exception but should log the error
         N/A os N/A in_ N/A N/A inotify INotify N/A N/A N/A os close N/A in_ _fd N/A N/A N/A in_ loseConnection N/A N/A N/A self flushLoggedErrors N/A test_noAutoAddSubdirectory N/A N/A self N/A N/A N/A 
        L{inotify.INotify.watch} with autoAdd==False will stop inotify
        from watching subdirectories created under the watched one.
         _callback N/A N/A wp fp mask N/A N/A _ N/A N/A N/A N/A N/A N/A N/A N/A N/A self assertFalse N/A N/A N/A self inotify _isWatched N/A subdir path N/A N/A N/A d callback None N/A N/A N/A Exception N/A N/A N/A N/A d errback N/A N/A N/A N/A reactor callLater 0 _ N/A N/A checkMask N/A N/A inotify IN_ISDIR N/A inotify IN_CREATE N/A N/A N/A N/A self inotify watch N/A self dirname mask checkMask autoAdd False callbacks N/A _callback N/A subdir N/A N/A N/A self dirname child test N/A d N/A N/A defer Deferred N/A N/A N/A subdir createDirectory N/A d N/A test_seriesOfWatchAndIgnore N/A N/A self N/A N/A N/A 
        L{inotify.INotify} will watch a filepath for events even if the same
        path is repeatedly added/removed/re-added to the watchpoints.
         N/A expectedPath N/A N/A N/A self dirname child foo.bar2 N/A N/A N/A expectedPath touch N/A notified N/A N/A defer Deferred cbNotified N/A N/A N/A ignored filename events N/A N/A N/A N/A N/A self assertEqual filename expectedPath N/A N/A N/A self assertTrue N/A events N/A inotify IN_DELETE_SELF N/A callIt N/A N/A N/A args N/A N/A N/A N/A notified callback args N/A N/A N/A N/A self assertTrue N/A N/A N/A self inotify watch expectedPath callbacks N/A callIt N/A N/A N/A N/A self inotify ignore expectedPath N/A N/A N/A self assertTrue N/A N/A N/A self inotify watch expectedPath mask N/A inotify IN_DELETE_SELF callbacks N/A callIt N/A N/A N/A notified addCallback cbNotified N/A N/A N/A expectedPath remove N/A notified N/A test_ignoreFilePath N/A N/A self N/A N/A N/A 
        L{inotify.INotify} will ignore a filepath after it has been removed from
        the watch list.
         N/A expectedPath N/A N/A N/A self dirname child foo.bar2 N/A N/A N/A expectedPath touch N/A expectedPath2 N/A N/A N/A self dirname child foo.bar3 N/A N/A N/A expectedPath2 touch N/A notified N/A N/A defer Deferred cbNotified N/A N/A N/A ignored filename events N/A N/A N/A N/A N/A self assertEqual filename expectedPath2 N/A N/A N/A self assertTrue N/A events N/A inotify IN_DELETE_SELF N/A callIt N/A N/A N/A args N/A N/A N/A N/A notified callback args N/A N/A N/A N/A self assertTrue N/A N/A N/A self inotify watch expectedPath N/A inotify IN_DELETE_SELF callbacks N/A callIt N/A N/A N/A notified addCallback cbNotified N/A N/A N/A self assertTrue N/A N/A N/A self inotify watch expectedPath2 N/A inotify IN_DELETE_SELF callbacks N/A callIt N/A N/A N/A N/A self inotify ignore expectedPath N/A N/A N/A expectedPath remove N/A N/A N/A expectedPath2 remove N/A notified N/A test_ignoreNonWatchedFile N/A N/A self N/A N/A N/A 
        L{inotify.INotify} will raise KeyError if a non-watched filepath is
        ignored.
         N/A expectedPath N/A N/A N/A self dirname child foo.ignored N/A N/A N/A expectedPath touch N/A N/A N/A self assertRaises KeyError N/A N/A self inotify ignore expectedPath N/A test_complexSubdirectoryAutoAdd N/A N/A self N/A N/A N/A 
        L{inotify.INotify} with autoAdd==True for a watched path
        generates events for every file or directory already present
        in a newly created subdirectory under the watched one.

        This tests that we solve a race condition in inotify even though
        we may generate duplicate events.
         N/A calls N/A set _callback N/A N/A wp filename mask N/A N/A N/A N/A N/A calls add filename N/A N/A N/A len calls 6 N/A N/A N/A N/A N/A N/A self assertTrue N/A N/A N/A self inotify _isWatched subdir N/A N/A N/A self assertTrue N/A N/A N/A self inotify _isWatched subdir2 N/A N/A N/A self assertTrue N/A N/A N/A self inotify _isWatched subdir3 N/A created N/A someFiles N/A subdir subdir2 subdir3 N/A N/A N/A self assertEqual N/A len calls N/A len created N/A N/A N/A self assertEqual calls N/A set created N/A N/A N/A Exception N/A N/A N/A N/A d errback N/A N/A N/A N/A d callback None N/A N/A checkMask N/A N/A inotify IN_ISDIR N/A inotify IN_CREATE N/A N/A N/A N/A self inotify watch N/A self dirname mask checkMask autoAdd True callbacks N/A _callback N/A subdir N/A N/A N/A self dirname child test N/A subdir2 N/A N/A subdir child test2 N/A subdir3 N/A N/A subdir2 child test3 N/A d N/A N/A defer Deferred N/A N/A N/A subdir3 makedirs N/A someFiles N/A N/A N/A subdir child file1.dat N/A N/A subdir2 child file2.dat N/A N/A subdir3 child file3.dat N/A N/A i filename N/A enumerate someFiles N/A N/A N/A N/A filename setContent N/A filename path N/A d N/A N/A