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

        A L{MissingRenderMethod} 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