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

Method test_auth_sspi

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

Source from the content-addressed store, hash-verified

474 super().setUpClass()
475
476 async def test_auth_sspi(self):
477 conn = await self.connect(user=self.username)
478 await conn.close()
479
480 # Credentials mismatch.
481 with self.assertRaisesRegex(
482 exceptions.InvalidAuthorizationSpecificationError,
483 'SSPI authentication failed for user'
484 ):
485 await self.connect(user=f'wrong-{self.username}')
486
487
488class TestConnectParams(tb.TestCase):

Callers

nothing calls this directly

Calls 2

connectMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected