From 3b325f1bc5df476c4c4e93c5a742d81e2c5bd950 Mon Sep 17 00:00:00 2001 From: Gert Van Gool Date: Tue, 14 Jul 2015 08:10:13 +0200 Subject: [PATCH] assert that the copy() is not the original --- test_requests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test_requests.py b/test_requests.py index aac4d8d0..5f4f472a 100755 --- a/test_requests.py +++ b/test_requests.py @@ -1267,7 +1267,10 @@ class TestCaseInsensitiveDict(unittest.TestCase): 'Accept': 'application/json', 'user-Agent': 'requests', }) - assert cid == cid.copy() + cid_copy = cid.copy() + assert cid == cid_copy + cid['changed'] = True + assert cid != cid_copy def test_repr(self): cid = CaseInsensitiveDict({