def test_removeDirectory(self):
        """
        Try to remove a directory and check it's removed from the filesystem.
        """
        self.createDirectory('bar')
        d = self.shell.removeDirectory(('bar',))
        def cb(result):
            self.assertFalse(self.directoryExists('bar'))
        return d.addCallback(cb)

        Try to remove a directory and check it's removed from the filesystem.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_ftp.py