mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Modify new CID tests to use native string keys.
This commit is contained in:
+3
-4
@@ -557,17 +557,16 @@ class RequestsTestCase(unittest.TestCase):
|
||||
s.headers.update({'accept': 'application/json'})
|
||||
r = s.get(httpbin('get'))
|
||||
headers = r.request.headers
|
||||
# ASCII encode because of key comparison changes in py3
|
||||
self.assertEqual(
|
||||
headers['accept'.encode('ascii')],
|
||||
headers['accept'],
|
||||
'application/json'
|
||||
)
|
||||
self.assertEqual(
|
||||
headers['Accept'.encode('ascii')],
|
||||
headers['Accept'],
|
||||
'application/json'
|
||||
)
|
||||
self.assertEqual(
|
||||
headers['ACCEPT'.encode('ascii')],
|
||||
headers['ACCEPT'],
|
||||
'application/json'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user