assert that the copy() is not the original

This commit is contained in:
Gert Van Gool
2015-07-14 08:10:13 +02:00
parent 47e71d1774
commit 3b325f1bc5
+4 -1
View File
@@ -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({