From: Stefan Metzmacher Date: Tue, 18 Feb 2025 11:13:26 +0000 (+0100) Subject: python:tests/krb5: give KerberosTicketCreds a basic __str__() function X-Git-Tag: tevent-0.17.0~629 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ab87a840fcbb15b95503bf89dda9148ea3d7efc;p=thirdparty%2Fsamba.git python:tests/krb5: give KerberosTicketCreds a basic __str__() function This makes debugging easier... Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/python/samba/tests/krb5/raw_testcase.py b/python/samba/tests/krb5/raw_testcase.py index 132517e5331..0c722711205 100644 --- a/python/samba/tests/krb5/raw_testcase.py +++ b/python/samba/tests/krb5/raw_testcase.py @@ -705,6 +705,10 @@ class KerberosTicketCreds: self.ticket['realm'] = srealm self.srealm = srealm + def __str__(self): + return "KerberosTicketCreds(crealm=%s, cname=%s, srealm=%s, sname=%s)" %( + self.crealm, self.cname, self.srealm, self.sname) + class PkInit(Enum): NOT_USED = object() PUBLIC_KEY = object()