MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / test_auth_gssapi_bad_user

Method test_auth_gssapi_bad_user

tests/test_connect.py:447–453  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

445 await self.connect(user=self.realm.user_princ, krbsrvname='wrong')
446
447 async def test_auth_gssapi_bad_user(self):
448 # Credentials mismatch.
449 with self.assertRaisesRegex(
450 exceptions.InvalidAuthorizationSpecificationError,
451 'GSSAPI authentication failed for user'
452 ):
453 await self.connect(user=f'wrong-{self.realm.user_princ}')
454
455
456@unittest.skipIf(_system != 'Windows', 'SSPI is only available on Windows')

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected