summaryrefslogtreecommitdiff
path: root/python/samba/tests/krb5/raw_testcase.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/samba/tests/krb5/raw_testcase.py')
-rw-r--r--python/samba/tests/krb5/raw_testcase.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/python/samba/tests/krb5/raw_testcase.py b/python/samba/tests/krb5/raw_testcase.py
index 8b6eec3c40d..d11f628d7b6 100644
--- a/python/samba/tests/krb5/raw_testcase.py
+++ b/python/samba/tests/krb5/raw_testcase.py
@@ -2490,19 +2490,8 @@ class RawKerberosTest(TestCaseInTempDir):
if self.strict_checking:
self.assertElementEqual(ticket_private, 'caddr', [])
if expect_pac is not None:
- if expect_pac:
- self.assertElementPresent(ticket_private,
- 'authorization-data',
- expect_empty=not expect_pac)
- else:
- # It is more correct to not have an authorization-data
- # present than an empty one.
- #
- # https://github.com/krb5/krb5/pull/1225#issuecomment-995104193
- v = self.getElementValue(ticket_private,
- 'authorization-data')
- if v is not None:
- self.assertEqual(0, len(v))
+ self.assertElementPresent(ticket_private, 'authorization-data',
+ expect_empty=not expect_pac)
encpart_session_key = None
if encpart_private is not None: