From: Jo Sutton Date: Mon, 4 Mar 2024 00:38:10 +0000 (+1300) Subject: python:tests: Reformat code X-Git-Tag: tdb-1.4.11~1128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5379956bd444fe49110bf8102c199ea8a0d4f909;p=thirdparty%2Fsamba.git python:tests: Reformat code Signed-off-by: Jo Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/gkdi.py b/python/samba/tests/gkdi.py index 03ed8d0141e..ac62eb51b70 100644 --- a/python/samba/tests/gkdi.py +++ b/python/samba/tests/gkdi.py @@ -647,7 +647,8 @@ def create_root_key( root_key_dn = samdb.get_config_basedn() root_key_dn.add_child( - "CN=Master Root Keys,CN=Group Key Distribution Service,CN=Services") + "CN=Master Root Keys,CN=Group Key Distribution Service,CN=Services" + ) root_key_dn.add_child(f"CN={guid}") @@ -667,9 +668,7 @@ def create_root_key( "msKds-KDFAlgorithmID": ( "SP800_108_CTR_HMAC" ), # comes from Server Configuration. - "msKds-SecretAgreementAlgorithmID": ( - "DH" - ), # comes from Server Configuration. + "msKds-SecretAgreementAlgorithmID": "DH", # comes from Server Configuration. "msKds-SecretAgreementParam": ( ffc_dh_parameters ), # comes from Server Configuration. @@ -679,9 +678,7 @@ def create_root_key( ), # comes from Server Configuration. [MS-GKDI] claims this defaults to ‘256’. } if kdf_parameters is not None: - details["msKds-KDFParam"] = ( - kdf_parameters # comes from Server Configuration. - ) + details["msKds-KDFParam"] = kdf_parameters # comes from Server Configuration. samdb.add(details)