From: Joseph Sutton Date: Tue, 21 Feb 2023 01:00:16 +0000 (+1300) Subject: tests/krb5: Generate more readable string representation X-Git-Tag: talloc-2.4.1~1548 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cc48da43eea10130dac7e0eab24ae5c83a9642c;p=thirdparty%2Fsamba.git tests/krb5: Generate more readable string representation This makes assertion failure messages easier to decipher. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/krb5/raw_testcase.py b/python/samba/tests/krb5/raw_testcase.py index 0d9c616cb09..c3af7d955d1 100644 --- a/python/samba/tests/krb5/raw_testcase.py +++ b/python/samba/tests/krb5/raw_testcase.py @@ -562,6 +562,9 @@ class RawKerberosTest(TestCaseInTempDir): RESOURCE_SID = object() # in resource_groups PRIMARY_GID = object() # the (sole) primary group + def __repr__(self): + return self.__str__() + pac_checksum_types = {krb5pac.PAC_TYPE_SRV_CHECKSUM, krb5pac.PAC_TYPE_KDC_CHECKSUM, krb5pac.PAC_TYPE_TICKET_CHECKSUM,