From 991e8f5a7f5a55347a12a1f9c0eff79583bbca7e Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Wed, 18 Oct 2023 14:17:59 +1300 Subject: [PATCH] tests/krb5: Use None for the default values of parameters Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- python/samba/tests/krb5/conditional_ace_tests.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/python/samba/tests/krb5/conditional_ace_tests.py b/python/samba/tests/krb5/conditional_ace_tests.py index e294fbd41d9..55fca83adea 100755 --- a/python/samba/tests/krb5/conditional_ace_tests.py +++ b/python/samba/tests/krb5/conditional_ace_tests.py @@ -2724,8 +2724,8 @@ class ConditionalAceTests(ConditionalAceBaseTests): reason=AuditReason.NONE, status=None, edata=False, - client_from_rodc=False, - device_from_rodc=False, + client_from_rodc=None, + device_from_rodc=None, client_sids=None, client_claims=None, device_sids=None, @@ -2741,6 +2741,12 @@ class ConditionalAceTests(ConditionalAceBaseTests): except TypeError: self.assertIsNot(code, CRASHES_WINDOWS) + if client_from_rodc is None: + client_from_rodc = False + + if device_from_rodc is None: + device_from_rodc = False + client_creds = self.get_cached_creds( account_type=self.AccountType.USER, opts={