Skip to content
Myr

Modify new CID tests to use native string keys.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Cory Benfield · committed by Cory Benfield · parent f577559 · Browse files · 1 file+3 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−4 removed

  • other:+3 added−4 removed

1 file+3 added−4 removed

modified:test_requests.py+3 added-4 removed
555 unmodified lines
556 s.headers.update({'ACCEPT': 'BOGUS'})557 s.headers.update({'accept': 'application/json'})558 r = s.get(httpbin('get'))559 headers = r.request.headers560 # ASCII encode because of key comparison changes in py3560 self.assertEqual(562 headers['accept'.encode('ascii')],561 headers['accept'],562 'application/json'563 )564 self.assertEqual(566 headers['Accept'.encode('ascii')],565 headers['Accept'],566 'application/json'567 )568 self.assertEqual(570 headers['ACCEPT'.encode('ascii')],569 headers['ACCEPT'],570 'application/json'571 )572573 def test_uppercase_scheme(self):
225 unmodified lines