Test that auth fails with the wrong password.
()
| 1592 | |
| 1593 | |
| 1594 | def test_http_basic_auth_invalid_password(): |
| 1595 | """Test that auth fails with the wrong password.""" |
| 1596 | with EchoStreamFlightServer(auth_handler=basic_auth_handler) as server, \ |
| 1597 | FlightClient(('localhost', server.port)) as client: |
| 1598 | action = flight.Action("who-am-i", b"") |
| 1599 | with pytest.raises(flight.FlightUnauthenticatedError, |
| 1600 | match=".*wrong password.*"): |
| 1601 | client.authenticate(HttpBasicClientAuthHandler('test', 'wrong')) |
| 1602 | next(client.do_action(action)) |
| 1603 | |
| 1604 | |
| 1605 | def test_token_auth(): |
nothing calls this directly
no test coverage detected