# 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:
# 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):
# 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)
# 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)
# 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)
"--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."""