mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
assert that the copy() is not the original
This commit is contained in:
+4
-1
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user