'Passing L{unicode} to L{Headers.setRawHeaders} will encode the name as
ISO-8859-1 and values as UTF-8.'

def test_rawHeadersValueEncoding(self):

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