def test_statDirectory(self):
        """
        Check the output of the stat method on a directory.
        """
        self.createDirectory('ned')
        d = self.shell.stat(('ned',), ('size', 'directory'))
        def cb(res):
            self.assertTrue(res[1])
        d.addCallback(cb)
        return d

        Check the output of the stat method on a directory.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_ftp.py