'Test Response copy'

def test_copy(self):

    r1 = self.response_class('http://www.example.com', body='Some    body')
    r1.flags.append('cached')
    r2 = r1.copy()
    self.assertEqual(r1.status, r2.status)
    self.assertEqual(r1.body, r2.body)
    assert (r1.flags is not r2.flags), 'flags    must    be    a    shallow    copy,    not    identical'
    self.assertEqual(r1.flags, r2.flags)
    assert (r1.headers is not r2.headers), 'headers    must    be    a    shallow    copy,    not    identical'
    self.assertEqual(r1.headers, r2.headers)
