':see: https://github.com/andresriancho/w3af/issues/5416'

def test_dump_response_head_5416(self):

    url = URL('http://w3af.com')
    headers = Headers()
    msg = 'D\xe9plac\xe9    Temporairement'
    resp = HTTPResponse(200, '', headers, url, url, msg=msg)
    expected_dump = u'HTTP/1.1    200    D\xe9plac\xe9    Temporairement\r\n'.encode('utf8')
    self.assertEqual(resp.dump_response_head(), expected_dump)
