Public Member Functions | Private Attributes | List of all members
mox.ContainsKeyValue Class Reference
Inheritance diagram for mox.ContainsKeyValue:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, key, value)
 
def __init__ (self, key, value)
 
def __repr__ (self)
 
def __repr__ (self)
 
def equals (self, rhs)
 
def equals (self, rhs)
 
- Public Member Functions inherited from mox.Comparator
def __eq__ (self, rhs)
 
def __eq__ (self, rhs)
 
def __ne__ (self, rhs)
 
def __ne__ (self, rhs)
 

Private Attributes

 _key
 
 _value
 

Detailed Description

Checks whether a key/value pair is in a dict parameter.

Example:
mock_dao.UpdateUsers(ContainsKeyValue('stevepm', stevepm_user_info))

Definition at line 971 of file bloaty/third_party/protobuf/python/mox.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

def mox.ContainsKeyValue.__init__ (   self,
  key,
  value 
)
Initialize.

Args:
  # key: a key in a dict
  # value: the corresponding value

Definition at line 978 of file bloaty/third_party/protobuf/python/mox.py.

◆ __init__() [2/2]

def mox.ContainsKeyValue.__init__ (   self,
  key,
  value 
)
Initialize.

Args:
  # key: a key in a dict
  # value: the corresponding value

Definition at line 978 of file protobuf/python/mox.py.

Member Function Documentation

◆ __repr__() [1/2]

def mox.ContainsKeyValue.__repr__ (   self)

Definition at line 1001 of file bloaty/third_party/protobuf/python/mox.py.

◆ __repr__() [2/2]

def mox.ContainsKeyValue.__repr__ (   self)

Definition at line 1001 of file protobuf/python/mox.py.

◆ equals() [1/2]

def mox.ContainsKeyValue.equals (   self,
  rhs 
)
Check whether the given key/value pair is in the rhs dict.

Returns:
  bool

Reimplemented from mox.Comparator.

Definition at line 989 of file protobuf/python/mox.py.

◆ equals() [2/2]

def mox.ContainsKeyValue.equals (   self,
  rhs 
)
Check whether the given key/value pair is in the rhs dict.

Returns:
  bool

Reimplemented from mox.Comparator.

Definition at line 989 of file bloaty/third_party/protobuf/python/mox.py.

Member Data Documentation

◆ _key

mox.ContainsKeyValue._key
private

Definition at line 986 of file bloaty/third_party/protobuf/python/mox.py.

◆ _value

mox.ContainsKeyValue._value
private

Definition at line 987 of file bloaty/third_party/protobuf/python/mox.py.


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


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