mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +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:
parent
1798342735
commit
c750c1db7f
@ -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):
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user