Public Member Functions | |
def | cancel (self) |
def | initial_metadata (self) |
def | termination (self) |
Fixture for a unary-unary RPC serviced by a system under test. Enables users to "play client" for the RPC.
Definition at line 295 of file src/python/grpcio_testing/grpc_testing/__init__.py.
def grpc_testing.UnaryUnaryServerRpc.cancel | ( | self | ) |
Cancels the RPC.
Reimplemented in grpc_testing._server._server_rpc.UnaryUnaryServerRpc.
Definition at line 316 of file src/python/grpcio_testing/grpc_testing/__init__.py.
def grpc_testing.UnaryUnaryServerRpc.initial_metadata | ( | self | ) |
Accesses the initial metadata emitted by the system under test. This method blocks until the system under test has added initial metadata to the RPC (or has provided one or more response messages or has terminated the RPC, either of which will cause gRPC Python to synthesize initial metadata for the RPC). Returns: The initial metadata for the RPC.
Reimplemented in grpc_testing._server._server_rpc.UnaryUnaryServerRpc.
Definition at line 302 of file src/python/grpcio_testing/grpc_testing/__init__.py.
def grpc_testing.UnaryUnaryServerRpc.termination | ( | self | ) |
Blocks until the system under test has terminated the RPC. Returns: A (response, trailing_metadata, code, details) sequence with the RPC's response, trailing metadata, code, and details.
Reimplemented in grpc_testing._server._server_rpc.UnaryUnaryServerRpc.
Definition at line 321 of file src/python/grpcio_testing/grpc_testing/__init__.py.