Public Member Functions | |
def | __call__ (self, context, callback) |
def | __call__ (self, context, callback) |
def | assert_called (self, test) |
Definition at line 75 of file _contextvars_propagation_test.py.
def tests.unit._contextvars_propagation_test.TestCallCredentials.__call__ | ( | self, | |
context, | |||
callback | |||
) |
Implements authentication by passing metadata to a callback. This method will be invoked asynchronously in a separate thread. Args: context: An AuthMetadataContext providing information on the RPC that the plugin is being called to authenticate. callback: An AuthMetadataPluginCallback to be invoked either synchronously or asynchronously.
Reimplemented from grpc.AuthMetadataPlugin.
Definition at line 77 of file _contextvars_propagation_test.py.
def tests.unit._contextvars_propagation_test.TestCallCredentials.__call__ | ( | self, | |
context, | |||
callback | |||
) |
Implements authentication by passing metadata to a callback. This method will be invoked asynchronously in a separate thread. Args: context: An AuthMetadataContext providing information on the RPC that the plugin is being called to authenticate. callback: An AuthMetadataPluginCallback to be invoked either synchronously or asynchronously.
Reimplemented from grpc.AuthMetadataPlugin.
Definition at line 98 of file _contextvars_propagation_test.py.
def tests.unit._contextvars_propagation_test.TestCallCredentials.assert_called | ( | self, | |
test | |||
) |
Definition at line 87 of file _contextvars_propagation_test.py.