webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
mox.ContainsKeyValue Class Reference
Inheritance diagram for mox.ContainsKeyValue:
mox.Comparator

Public Member Functions

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

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __init__()

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

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

Member Function Documentation

◆ __repr__()

def mox.ContainsKeyValue.__repr__ (   self)

◆ equals()

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

Returns:
  bool

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