

def test_headers(self):
    '\n        Check that setting a header with L{FakeRequest.setHeader} actually\n        places it in the headers dictionary.\n        '
    host = 'divmod.com'
    req = FakeRequest()
    req.setHeader('host', host)
    self.assertEqual(req.responseHeaders.getRawHeaders('host'), [host])

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