def test_NLSTOnPathToFile(self):
        """
        NLST on an existent file returns only the path to that file.
        """
        # Login
        d = self._anonymousLogin()

        # Touch a file in the current working directory
        self.dirPath.child('test.txt').touch()

        self._download('NLST test.txt', chainDeferred=d)

        def checkDownload(download):
            filenames = download[:-2].split(b'\r\n')
            self.assertEqual([b'test.txt'], filenames)
        return d.addCallback(checkDownload)

        NLST on an existent file returns only the path to that file.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_ftp.py