'Passing L{unicode} to any function that takes a header name will encode
said header name as ISO-8859-1.'

def test_nameEncoding(self):

    h = Headers()
    h.setRawHeaders(u'\xe1', ['foo'])
    self.assertTrue(h.hasHeader('\xe1'))
    self.assertEqual(h.getRawHeaders('\xe1'), ['foo'])
    self.assertTrue(h.hasHeader(u'\xe1'))
