Test that auth fails with the wrong password.
()
| 1630 | |
| 1631 | |
| 1632 | def test_http_basic_auth_invalid_password(): |
| 1633 | """Test that auth fails with the wrong password.""" |
| 1634 | with EchoStreamFlightServer(auth_handler=basic_auth_handler) as server, \ |
| 1635 | FlightClient(('localhost', server.port)) as client: |
| 1636 | action = flight.Action("who-am-i", b"") |
| 1637 | with pytest.raises(flight.FlightUnauthenticatedError, |
| 1638 | match=".*wrong password.*"): |
| 1639 | client.authenticate(HttpBasicClientAuthHandler('test', 'wrong')) |
| 1640 | next(client.do_action(action)) |
| 1641 | |
| 1642 | |
| 1643 | def test_token_auth(): |
nothing calls this directly
no test coverage detected