

def test_headerSeparation(self):
    '\n        Request headers and response headers are different things.\n\n        Test that they are handled separately.\n        '
    req = FakeRequest()
    req.setHeader('foo', 'bar')
    self.assertFalse(req.requestHeaders.hasHeader('foo'))
    self.assertEqual(req.getHeader('foo'), None)
    req.requestHeaders.setRawHeaders('foo', ['bar'])
    self.assertEqual(req.getHeader('foo'), 'bar')

dataset/ETHPy150Open twisted/nevow/nevow/test/test_testutil.py TestFakeRequest.test_headerSeparation/original