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

        request = Request('GET', '/', Headers({'Host': ['example.com', 'example.org']}), None)
        self.assertRaises(BadHeaders, request.writeTo, self.transport)
        self.assertEqual(self.transport.value(), '')
Test that we can retrieve a Neuron by name.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/test/test_newclient.py/RequestTests.test_hostHeaderRequired--crossover with--dataset/ETHPy150Open openworm/PyOpenWorm/tests/NetworkTest.py/NetworkTest.test_aneuron