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

Public Member Functions

def __init__ (self, key)
 
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 an item (or key) is in a list (or dict) parameter.

Example:
mock_dao.GetUsersInfo(In('expectedUserName')).AndReturn(mock_result)

Constructor & Destructor Documentation

◆ __init__()

def mox.In.__init__ (   self,
  key 
)
Initialize.

Args:
  # key is any thing that could be in a list or a key in a dict

Member Function Documentation

◆ __repr__()

def mox.In.__repr__ (   self)

◆ equals()

def mox.In.equals (   self,
  rhs 
)
Check to see whether key is in rhs.

Args:
  rhs: dict

Returns:
  bool

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