Lines Matching full:headers
64 headers = {'a': 1, 'b': 2}
65 result = transport._initialize_headers(headers)
66 self.assertEqual(result, headers)
67 self.assertIsNot(result, headers)
73 headers = object()
74 result = transport._apply_user_agent(headers, None)
75 self.assertIs(result, headers)
78 headers = {}
80 result = transport._apply_user_agent(headers, user_agent)
81 self.assertIs(result, headers)
86 headers = {'user-agent': orig_agent}
88 result = transport._apply_user_agent(headers, user_agent)
89 self.assertIs(result, headers)
97 headers = {b'key': b'val'}
98 result = transport.clean_headers(headers)
99 self.assertIsNot(result, headers)
100 self.assertEqual(result, headers)
103 headers = {u'key': u'val'}
105 result = transport.clean_headers(headers)
106 self.assertIsNot(result, headers)
110 headers = {u'key': u'\u2603'}
112 transport.clean_headers(headers)
115 headers = {b'key': True}
117 result = transport.clean_headers(headers)
118 self.assertIsNot(result, headers)