def test_NLSTEmpty(self):
        """
        NLST with no argument returns the directory listing for the current
        working directory.
        """
        # Login
        d = self._anonymousLogin()

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

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

        NLST with no argument returns the directory listing for the current
        working directory.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_ftp.py