MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / test_auth_reject

Method test_auth_reject

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

Source from the content-addressed store, hash-verified

248 await conn.close()
249
250 async def test_auth_reject(self):
251 with self.assertRaisesRegex(
252 asyncpg.InvalidAuthorizationSpecificationError,
253 'pg_hba.conf rejects connection'):
254 await self._try_connect(user='reject_user')
255
256 async def test_auth_password_cleartext(self):
257 conn = await self.connect(

Callers

nothing calls this directly

Calls 1

_try_connectMethod · 0.95

Tested by

no test coverage detected