'The L{repr} of an instance of a subclass of L{Headers} uses the name
of the subclass instead of the string C{"Headers"}.'

def test_subclassRepr(self):

    foo = u'foo\xe1'
    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'))))
