]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Clarify checksum type assertion message
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 11 Oct 2021 01:39:26 +0000 (14:39 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Oct 2021 18:59:31 +0000 (18:59 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14642

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/krb5/raw_testcase.py

index 72a39b23b0e402378099bfe7794042e9b5081736..e52eb5ae5b975c5934509f0e7e56b7a0c490f310 100644 (file)
@@ -248,7 +248,8 @@ class Krb5EncryptionKey:
 
     def verify_checksum(self, usage, plaintext, ctype, cksum):
         if self.ctype != ctype:
-            raise AssertionError(f'{self.ctype} != {ctype}')
+            raise AssertionError(f'key checksum type ({self.ctype}) != '
+                                 f'checksum type ({ctype})')
 
         kcrypto.verify_checksum(ctype,
                                 self.key,