def test_filenameWithUnescapedSpace(self):
        """
        Will parse filenames and linktargets containing unescaped
        space characters.
        """
        line1 = 'drw-r--r--   2 root     other        531 Jan  9  2003 A B'
        line2 = (
            'lrw-r--r--   1 root     other          1 Jan 29 03:26 '
            'B A -> D C/A B'
            )

        def check(result):
            (files, others) = result
            self.assertEqual([], others, 'unexpected others entries')
            self.assertEqual(
                'A B', files[0]['filename'], 'misparsed filename')
            self.assertEqual(
                'B A', files[1]['filename'], 'misparsed filename')
            self.assertEqual(
                'D C/A B', files[1]['linktarget'], 'misparsed linktarget')
        return self.getFilesForLines([line1, line2]).addCallback(check)

        Will parse filenames and linktargets containing unescaped
        space characters.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_ftp.py