def test_ignoreDirectory(self):
        """
        L{inotify.INotify.ignore} removes a directory from the watchlist
        """
        self.inotify.watch(self.dirname, autoAdd=True)
        self.assertTrue(self.inotify._isWatched(self.dirname))
        self.inotify.ignore(self.dirname)
        self.assertFalse(self.inotify._isWatched(self.dirname))

        L{inotify.INotify.ignore} removes a directory from the watchlist
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_inotify.py