()
| 2177 | |
| 2178 | |
| 2179 | def test_extra_info(): |
| 2180 | with ErrorFlightServer() as server, \ |
| 2181 | FlightClient(('localhost', server.port)) as client: |
| 2182 | try: |
| 2183 | list(client.do_action(flight.Action("protobuf", b""))) |
| 2184 | assert False |
| 2185 | except flight.FlightUnauthorizedError as e: |
| 2186 | assert e.extra_info is not None |
| 2187 | ei = e.extra_info |
| 2188 | assert ei == b'this is an error message' |
| 2189 | |
| 2190 | |
| 2191 | @pytest.mark.requires_testing_data |
nothing calls this directly
no test coverage detected