def test_subclassRepr(self):
        """
        The L{repr} of an instance of a subclass of L{Headers} uses the name
        of the subclass instead of the string C{"Headers"}.
        """
        foo = u"foo\u00E1"
        bar = u"bar\u2603"
        baz = u"baz"
        fooEncoded = "'foo\\xe1'"
        barEncoded = "'bar\\xe2\\x98\\x83'"
        if _PY3:
            fooEncoded = "b" + fooEncoded
            barEncoded = "b" + barEncoded
        class FunnyHeaders(Headers):
            pass
        self.assertEqual(
            repr(FunnyHeaders({foo: [bar, baz]})),
            "FunnyHeaders({%s: [%s, %r]})" % (fooEncoded,
                                              barEncoded,
                                              baz.encode('utf8')))

        The L{repr} of an instance of a subclass of L{Headers} uses the name
        of the subclass instead of the string C{"Headers"}.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http_headers.py