def test_should_generate_kerberos_auth_token_correctly(self): auth = kerberos_auth("I am a base64 service ticket") assert auth.scheme == "kerberos" assert auth.principal == "" assert auth.credentials == "I am a base64 service ticket" assert not auth.realm assert not hasattr(auth, "parameters")
def __init__(self, uri, ticket): self._driver = GraphDatabase.driver(uri, auth=kerberos_auth(ticket))