def test_repr(self):
        """
        A L{MissingTemplateLoader} is represented using a custom string
        containing the element's representation and the method name.
        """
        elt = object()
        e = error.MissingTemplateLoader(elt)
        self.assertEqual(
            repr(e),
            "'MissingTemplateLoader': %r had no loader" % elt)

        A L{MissingTemplateLoader} is represented using a custom string
        containing the element's representation and the method name.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_error.py