def test_nlstGlobbing(self):
        """
        When Unix shell globbing is used with NLST only files matching the
        pattern will be returned.
        """
        self.dirPath.child('test.txt').touch()
        self.dirPath.child('ceva.txt').touch()
        self.dirPath.child('no.match').touch()
        d = self._anonymousLogin()

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

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

        return d.addCallback(checkDownload)

        When Unix shell globbing is used with NLST only files matching the
        pattern will be returned.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_ftp.py