python:tests: Reformat code
authorJo Sutton <josutton@catalyst.net.nz>
Mon, 4 Mar 2024 00:38:10 +0000 (13:38 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 16 Apr 2024 03:58:31 +0000 (03:58 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/gkdi.py

index 03ed8d0141e65c67aad169dba767547a36fc5160..ac62eb51b70a60b26066e113a4b6f00fc29282db 100644 (file)
@@ -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)