(self)
| 324 | password=lambda: get_wrongpassword()) |
| 325 | |
| 326 | async def test_auth_password_md5(self): |
| 327 | conn = await self.connect( |
| 328 | user='md5_user', password=CORRECT_PASSWORD) |
| 329 | await conn.close() |
| 330 | |
| 331 | with self.assertRaisesRegex( |
| 332 | asyncpg.InvalidPasswordError, |
| 333 | 'password authentication failed for user "md5_user"'): |
| 334 | await self._try_connect( |
| 335 | user='md5_user', password='wrongpassword') |
| 336 | |
| 337 | async def test_auth_password_scram_sha_256(self): |
| 338 | # scram is only supported in PostgreSQL 10 and above |
nothing calls this directly
no test coverage detected