Example #1
0
 def test_null_headers_setter(self):
     request = HTTPRequest('http://example.com')
     request.headers = None
     self.assertEqual(request.headers, {})
Example #2
0
 def test_headers_setter(self):
     request = HTTPRequest('http://example.com')
     request.headers = {'bar': 'baz'}
     self.assertEqual(request.headers, {'bar': 'baz'})