

def test_file_remove(self):
    ' Delete with recursive deactivated '
    rfs = RemoteFileSystem(HOST, USER, PWD)
    rfs.remove('/test/hola/file3', recursive=False)
    rfs.remove('/test/hola/file2', recursive=False)
    rfs.remove('/test/hola', recursive=False)
    rfs.remove('/test/file1', recursive=False)
    rfs.remove('/test', recursive=False)
    ftp = ftplib.FTP(HOST, USER, PWD)
    list_dir = ftp.nlst()
    self.assertFalse(('test' in list_dir))

dataset/ETHPy150Open spotify/luigi/test/_test_ftp.py TestFTPFilesystem.test_file_remove/original