def test_removeHeader(self):
        """
        Check that L{Headers.removeHeader} removes the given header.
        """
        h = Headers()

        h.setRawHeaders(u"foo", [u"lemur"])
        self.assertTrue(h.hasHeader(u"foo"))
        h.removeHeader(u"foo")
        self.assertFalse(h.hasHeader(u"foo"))
        self.assertFalse(h.hasHeader(b"foo"))

        h.setRawHeaders(u"bar", [u"panda"])
        self.assertTrue(h.hasHeader(u"bar"))
        h.removeHeader(u"Bar")
        self.assertFalse(h.hasHeader(u"bar"))
        self.assertFalse(h.hasHeader(b"bar"))

        Check that L{Headers.removeHeader} removes the given header.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http_headers.py