Commits

Andriy Kornatskyy committed 89b77d6

Updated HTTPClient test case to check if connection close header is set.

  • Participants
  • Parent commits 0edd497

Comments (0)

Files changed (1)

File src/wheezy/core/tests/test_httpclient.py

         assert '/api/v1/auth/token' == path
         assert '' == body
         assert self.client.default_headers == headers
-        assert 'Accept-Encoding' in headers
-        assert 2 == len(headers)
+        assert 'gzip' == headers['Accept-Encoding']
+        assert 'close' == headers['Connection']
+        assert 3 == len(headers)
 
     def test_ajax_get(self):
         self.client.ajax_get('auth/token')