From 56ee27d9d1b1ea35de7a863caf91af0c62f9abaa Mon Sep 17 00:00:00 2001 From: Marcos Pereira Date: Wed, 23 Aug 2017 09:48:33 -0300 Subject: [PATCH] Fixed tests. --- keycloak/connection.py | 2 +- keycloak/tests/test_connection.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keycloak/connection.py b/keycloak/connection.py index 8a1bd55..d38d2ab 100644 --- a/keycloak/connection.py +++ b/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. diff --git a/keycloak/tests/test_connection.py b/keycloak/tests/test_connection.py index d45a411..1dc9b33 100644 --- a/keycloak/tests/test_connection.py +++ b/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)