1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

python:tests: Remove unnecessary f‐strings

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-10-24 16:32:31 +13:00 committed by Andrew Bartlett
parent 1798342735
commit c750c1db7f
3 changed files with 6 additions and 6 deletions

View File

@ -133,7 +133,7 @@ class TestDnsPacketBase(TestCase):
# unresponsive.
if r != [s]:
ok = self._known_good_query()
self.assertTrue(ok, f"the server is unresponsive")
self.assertTrue(ok, "the server is unresponsive")
def _known_good_query(self):
if self.server[1] == 53:
@ -167,7 +167,7 @@ class TestDnsPacketBase(TestCase):
# but it is not reasonable to render the server
# unresponsive.
ok = self._known_good_query()
self.assertTrue(ok, f"the server is unresponsive")
self.assertTrue(ok, "the server is unresponsive")
class TestDnsPackets(TestDnsPacketBase):

View File

@ -5033,7 +5033,7 @@ class AuthnPolicyTests(AuthnPolicyBaseTests):
# Create an authentication policy that applies to a user and explicitly
# denies authentication with any device.
denied = f'O:SYD:(D;;CR;;;WD)'
denied = 'O:SYD:(D;;CR;;;WD)'
policy = self.create_authn_policy(enforced=True,
user_allowed_from=denied)
@ -5319,7 +5319,7 @@ class AuthnPolicyTests(AuthnPolicyBaseTests):
# Create an authentication policy that applies to a user and explicitly
# denies authentication with any device.
denied = f'O:SYD:(D;;CR;;;WD)'
denied = 'O:SYD:(D;;CR;;;WD)'
policy = self.create_authn_policy(enforced=True,
user_allowed_from=denied)
@ -5411,7 +5411,7 @@ class AuthnPolicyTests(AuthnPolicyBaseTests):
# Create an authentication policy that applies to a user and explicitly
# denies authentication with any device.
denied = f'O:SYD:(D;;CR;;;WD)'
denied = 'O:SYD:(D;;CR;;;WD)'
policy = self.create_authn_policy(enforced=True,
user_allowed_from=denied)

View File

@ -216,7 +216,7 @@ class AuthSiloCmdTestCase(BaseAuthCmdTest):
"--name", "policyNotFound",
"--policy", "Invalid Policy")
self.assertEqual(result, -1)
self.assertIn(f"Authentication policy Invalid Policy not found.", err)
self.assertIn("Authentication policy Invalid Policy not found.", err)
def test_authentication_silo_create_fails(self):
"""Test creating an authentication silo, but it fails."""