]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use f-strings
authorNicki Křížek <nicki@isc.org>
Tue, 8 Oct 2024 12:12:10 +0000 (14:12 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 16 Oct 2024 15:16:02 +0000 (17:16 +0200)
bin/tests/system/isctest/kasp.py

index 9676fab92b8b55ae300d845567d31de98d9f3c78..fb752e8dc7588509a44ced656a29761a12e72a9b 100644 (file)
@@ -301,18 +301,18 @@ def check_dnssecstatus(server, zone, keys, policy=None, view=None):
     # policy name is returned, and if all expected keys are listed.
     response = ""
     if view is None:
-        response = server.rndc("dnssec -status {}".format(zone), log=False)
+        response = server.rndc(f"dnssec -status {zone}", log=False)
     else:
-        response = server.rndc("dnssec -status {} in {}".format(zone, view), log=False)
+        response = server.rndc(f"dnssec -status {zone} in {view}", log=False)
 
     if policy is None:
         assert "Zone does not have dnssec-policy" in response
         return
 
-    assert "dnssec-policy: {}".format(policy) in response
+    assert f"dnssec-policy: {policy}" in response
 
     for key in keys:
-        assert "key: {}".format(key.tag) in response
+        assert f"key: {key.tag}" in response
 
 
 def _check_signatures(signatures, covers, fqdn, keys):