

def test_swob_request_copy(self):
    req = swob.Request.blank('/')
    req2 = internal_proxy.swob_request_copy(req)
    self.assertEquals(req.path, req2.path)
    self.assertEquals(req.path_info, req2.path_info)
    self.assertFalse((req is req2))
    self.assertEquals(req.headers, req2.headers)
    self.assertFalse((req.headers is req2.headers))

dataset/ETHPy150Open notmyname/slogging/test_slogging/unit/test_internal_proxy.py TestInternalProxy.test_swob_request_copy/original