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

Public Member Functions

def __init__ (self, key)
 
def __init__ (self, key)
 
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
 

Detailed Description

Checks whether an item (or key) is in a list (or dict) parameter.

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

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

Constructor & Destructor Documentation

◆ __init__() [1/2]

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

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

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

◆ __init__() [2/2]

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

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

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

Member Function Documentation

◆ __repr__() [1/2]

def mox.In.__repr__ (   self)

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

◆ __repr__() [2/2]

def mox.In.__repr__ (   self)

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

◆ equals() [1/2]

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

Args:
  rhs: dict

Returns:
  bool

Reimplemented from mox.Comparator.

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

◆ equals() [2/2]

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

Args:
  rhs: dict

Returns:
  bool

Reimplemented from mox.Comparator.

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

Member Data Documentation

◆ _key

mox.In._key
private

Definition at line 953 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