(self)
| 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 | |
| 488 | class TestConnectParams(tb.TestCase): |