
Public Member Functions | |
| def | cancelled (self) |
| def | send_initial_metadata (self, initial_metadata) |
| def | terminate (self, response, trailing_metadata, code, details) |
Fixture for a unary-unary RPC invoked by a system under test. Enables users to "play server" for the RPC.
Definition at line 23 of file src/python/grpcio_testing/grpc_testing/__init__.py.
| def grpc_testing.UnaryUnaryChannelRpc.cancelled | ( | self | ) |
Blocks until the system under test has cancelled the RPC.
Reimplemented in grpc_testing._channel._channel_rpc._UnaryUnary.
Definition at line 40 of file src/python/grpcio_testing/grpc_testing/__init__.py.
| def grpc_testing.UnaryUnaryChannelRpc.send_initial_metadata | ( | self, | |
| initial_metadata | |||
| ) |
Sends the RPC's initial metadata to the system under test.
Args:
initial_metadata: The RPC's initial metadata to be "sent" to
the system under test.
Reimplemented in grpc_testing._channel._channel_rpc._UnaryUnary.
Definition at line 30 of file src/python/grpcio_testing/grpc_testing/__init__.py.
| def grpc_testing.UnaryUnaryChannelRpc.terminate | ( | self, | |
| response, | |||
| trailing_metadata, | |||
| code, | |||
| details | |||
| ) |
Terminates the RPC. Args: response: The response for the RPC. trailing_metadata: The RPC's trailing metadata. code: The RPC's status code. details: The RPC's status details.
Reimplemented in grpc_testing._channel._channel_rpc._UnaryUnary.
Definition at line 45 of file src/python/grpcio_testing/grpc_testing/__init__.py.