def client(self): """ :rtype: keycloak.client.KeycloakClient """ if self._client is None: self._client = KeycloakClient(server_url=self._server_url, headers=self._headers) return self._client
def setUp(self): self.headers = {'initial': 'header'} self.server_url = 'https://example.com' self.client = KeycloakClient(server_url=self.server_url, headers=self.headers)