Public Member Functions | List of all members
grpc_testing.UnaryUnaryChannelRpc Class Reference
Inheritance diagram for grpc_testing.UnaryUnaryChannelRpc:
Inheritance graph
[legend]

Public Member Functions

def cancelled (self)
 
def send_initial_metadata (self, initial_metadata)
 
def terminate (self, response, trailing_metadata, code, details)
 

Detailed Description

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.

Member Function Documentation

◆ cancelled()

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.

◆ send_initial_metadata()

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.

◆ terminate()

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.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:40