def test_hostHeaderRequired(self):
        request = Request(b'GET', b'/', Headers({}), None)
        self.assertRaises(BadHeaders, request.writeTo, self.transport)
        self.assertEqual(self.transport.value(), b'')

        request = Request(b'GET', b'/',
            Headers({b'Host': [b'example.com', b'example.org']}), None)
        self.assertRaises(BadHeaders, request.writeTo, self.transport)
        self.assertEqual(self.transport.value(), b'')
L{Request.writeTo} raises L{BadHeaders} if there is not exactly one
dataset/ETHPy150Open twisted/twisted/twisted/web/test/test_newclient.py/RequestTests.test_hostHeaderRequired