(self)
| 333 | password=lambda: get_wrongpassword()) |
| 334 | |
| 335 | async def test_auth_password_md5(self): |
| 336 | conn = await self.connect( |
| 337 | user='md5_user', password=CORRECT_PASSWORD) |
| 338 | await conn.close() |
| 339 | |
| 340 | with self.assertRaisesRegex( |
| 341 | asyncpg.InvalidPasswordError, |
| 342 | 'password authentication failed for user "md5_user"'): |
| 343 | await self._try_connect( |
| 344 | user='md5_user', password='wrongpassword') |
| 345 | |
| 346 | async def test_auth_password_scram_sha_256(self): |
| 347 | # scram is only supported in PostgreSQL 10 and above |
nothing calls this directly
no test coverage detected