def test_removeFile(self):
        """
        Try to remove a file and check it's removed from the filesystem.
        """
        self.createFile('file.txt')
        d = self.shell.removeFile(('file.txt',))
        def cb(res):
            self.assertFalse(self.fileExists('file.txt'))
        d.addCallback(cb)
        return d

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