def test_repr(self):
        """
        L{static.DirectoryLister.__repr__} gives the path of the lister.
        """
        path = FilePath(self.mktemp())
        lister = static.DirectoryLister(path.path)
        self.assertEqual(repr(lister),
                          "<DirectoryLister of %r>" % (path.path,))
        self.assertEqual(str(lister),
                          "<DirectoryLister of %r>" % (path.path,))

        L{static.DirectoryLister.__repr__} gives the path of the lister.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_static.py