Public Member Functions | |
def | cancelled (self) |
def | send_initial_metadata (self, initial_metadata) |
def | send_response (self, response) |
def | terminate (self, trailing_metadata, code, details) |
Fixture for a unary-stream RPC invoked by a system under test. Enables users to "play server" for the RPC.
Definition at line 57 of file src/python/grpcio_testing/grpc_testing/__init__.py.
def grpc_testing.UnaryStreamChannelRpc.cancelled | ( | self | ) |
Blocks until the system under test has cancelled the RPC.
Reimplemented in grpc_testing._channel._channel_rpc._UnaryStream.
Definition at line 83 of file src/python/grpcio_testing/grpc_testing/__init__.py.
def grpc_testing.UnaryStreamChannelRpc.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._UnaryStream.
Definition at line 64 of file src/python/grpcio_testing/grpc_testing/__init__.py.
def grpc_testing.UnaryStreamChannelRpc.send_response | ( | self, | |
response | |||
) |
Sends a response to the system under test. Args: response: A response message to be "sent" to the system under test.
Reimplemented in grpc_testing._channel._channel_rpc._UnaryStream.
Definition at line 74 of file src/python/grpcio_testing/grpc_testing/__init__.py.
def grpc_testing.UnaryStreamChannelRpc.terminate | ( | self, | |
trailing_metadata, | |||
code, | |||
details | |||
) |
Terminates the RPC. Args: 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._UnaryStream.
Definition at line 88 of file src/python/grpcio_testing/grpc_testing/__init__.py.