Classes | Functions | Variables
tests.unit._metadata_test Namespace Reference

Classes

class  _GenericHandler
 
class  _MethodHandler
 
class  MetadataTest
 

Functions

def _user_agent (metadata)
 
def handle_stream_stream (test, request_iterator, servicer_context)
 
def handle_stream_unary (test, request_iterator, servicer_context)
 
def handle_unary_stream (test, request, servicer_context)
 
def handle_unary_unary (test, request, servicer_context)
 
def validate_client_metadata (test, servicer_context)
 

Variables

tuple _CHANNEL_ARGS
 
tuple _EXPECTED_INITIAL_METADATA
 
tuple _EXPECTED_INVOCATION_METADATA
 
tuple _EXPECTED_TRAILING_METADATA = _TRAILING_METADATA
 
tuple _INITIAL_METADATA
 
tuple _INVOCATION_METADATA
 
string _REQUEST = b'\x00\x00\x00'
 
string _RESPONSE = b'\x00\x00\x00'
 
string _STREAM_STREAM = '/test/StreamStream'
 
string _STREAM_UNARY = '/test/StreamUnary'
 
tuple _TRAILING_METADATA
 
string _UNARY_STREAM = '/test/UnaryStream'
 
string _UNARY_UNARY = '/test/UnaryUnary'
 
 verbosity
 

Function Documentation

◆ _user_agent()

def tests.unit._metadata_test._user_agent (   metadata)
private

Definition at line 84 of file unit/_metadata_test.py.

◆ handle_stream_stream()

def tests.unit._metadata_test.handle_stream_stream (   test,
  request_iterator,
  servicer_context 
)

Definition at line 127 of file unit/_metadata_test.py.

◆ handle_stream_unary()

def tests.unit._metadata_test.handle_stream_unary (   test,
  request_iterator,
  servicer_context 
)

Definition at line 117 of file unit/_metadata_test.py.

◆ handle_unary_stream()

def tests.unit._metadata_test.handle_unary_stream (   test,
  request,
  servicer_context 
)

Definition at line 109 of file unit/_metadata_test.py.

◆ handle_unary_unary()

def tests.unit._metadata_test.handle_unary_unary (   test,
  request,
  servicer_context 
)

Definition at line 102 of file unit/_metadata_test.py.

◆ validate_client_metadata()

def tests.unit._metadata_test.validate_client_metadata (   test,
  servicer_context 
)

Definition at line 91 of file unit/_metadata_test.py.

Variable Documentation

◆ _CHANNEL_ARGS

tuple tests.unit._metadata_test._CHANNEL_ARGS
private
Initial value:
1 = (('grpc.primary_user_agent', 'primary-agent'),
2  ('grpc.secondary_user_agent', 'secondary-agent'))

Definition at line 26 of file unit/_metadata_test.py.

◆ _EXPECTED_INITIAL_METADATA

tuple tests.unit._metadata_test._EXPECTED_INITIAL_METADATA
private
Initial value:
1 = (
2  (
3  'initial-md-key',
4  'initial-md-value',
5  ),
6  (
7  'initial-md-key-bin',
8  b'\x00\x02',
9  ),
10 )

Definition at line 60 of file unit/_metadata_test.py.

◆ _EXPECTED_INVOCATION_METADATA

tuple tests.unit._metadata_test._EXPECTED_INVOCATION_METADATA
private
Initial value:
1 = (
2  (
3  'invocation-md-key',
4  'invocation-md-value',
5  ),
6  (
7  'invocation-md-key-bin',
8  b'\x00\x01',
9  ),
10 )

Definition at line 47 of file unit/_metadata_test.py.

◆ _EXPECTED_TRAILING_METADATA

tuple tests.unit._metadata_test._EXPECTED_TRAILING_METADATA = _TRAILING_METADATA
private

Definition at line 81 of file unit/_metadata_test.py.

◆ _INITIAL_METADATA

tuple tests.unit._metadata_test._INITIAL_METADATA
private
Initial value:
1 = ((b'initial-md-key', u'initial-md-value'),
2  (u'initial-md-key-bin', b'\x00\x02'))

Definition at line 58 of file unit/_metadata_test.py.

◆ _INVOCATION_METADATA

tuple tests.unit._metadata_test._INVOCATION_METADATA
private
Initial value:
1 = (
2  (
3  b'invocation-md-key',
4  u'invocation-md-value',
5  ),
6  (
7  u'invocation-md-key-bin',
8  b'\x00\x01',
9  ),
10 )

Definition at line 37 of file unit/_metadata_test.py.

◆ _REQUEST

string tests.unit._metadata_test._REQUEST = b'\x00\x00\x00'
private

Definition at line 29 of file unit/_metadata_test.py.

◆ _RESPONSE

string tests.unit._metadata_test._RESPONSE = b'\x00\x00\x00'
private

Definition at line 30 of file unit/_metadata_test.py.

◆ _STREAM_STREAM

string tests.unit._metadata_test._STREAM_STREAM = '/test/StreamStream'
private

Definition at line 35 of file unit/_metadata_test.py.

◆ _STREAM_UNARY

string tests.unit._metadata_test._STREAM_UNARY = '/test/StreamUnary'
private

Definition at line 34 of file unit/_metadata_test.py.

◆ _TRAILING_METADATA

tuple tests.unit._metadata_test._TRAILING_METADATA
private
Initial value:
1 = (
2  (
3  'server-trailing-md-key',
4  'server-trailing-md-value',
5  ),
6  (
7  'server-trailing-md-key-bin',
8  b'\x00\x03',
9  ),
10 )

Definition at line 71 of file unit/_metadata_test.py.

◆ _UNARY_STREAM

string tests.unit._metadata_test._UNARY_STREAM = '/test/UnaryStream'
private

Definition at line 33 of file unit/_metadata_test.py.

◆ _UNARY_UNARY

string tests.unit._metadata_test._UNARY_UNARY = '/test/UnaryUnary'
private

Definition at line 32 of file unit/_metadata_test.py.

◆ verbosity

tests.unit._metadata_test.verbosity

Definition at line 242 of file unit/_metadata_test.py.



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