Browse Source

Fixed tests.

hotfix/merge
Marcos Pereira 7 years ago
parent
commit
56ee27d9d1
  1. 2
      keycloak/connection.py
  2. 2
      keycloak/tests/test_connection.py

2
keycloak/connection.py

@ -87,7 +87,7 @@ class ConnectionManager(object):
:return:
If the header parameters exist, return True.
"""
return self.get_param_headers(key) is not None
return self.param_headers(key) is not None
def add_param_headers(self, key, value):
""" Add a single parameter inside the header.

2
keycloak/tests/test_connection.py

@ -97,7 +97,7 @@ class TestConnection(unittest.TestCase):
with HTTMock(response_post_fail):
resp = self._conn.raw_post("/known_path",
{'field': 'value'})
{'field': 'value'})
self.assertEqual(resp.content, str(["Start can't be blank"]).encode("utf-8"))
self.assertEqual(resp.status_code, 404)

Loading…
Cancel
Save