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

Public Member Functions

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

Detailed Description

Ignore an argument.

This can be used when we don't care about an argument of a method call.

Example:
# Check if CastMagic is called with 3 as first arg and 'disappear' as third.
mymock.CastMagic(3, IgnoreArg(), 'disappear')

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

Member Function Documentation

◆ __repr__() [1/2]

def mox.IgnoreArg.__repr__ (   self)

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

◆ __repr__() [2/2]

def mox.IgnoreArg.__repr__ (   self)

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

◆ equals() [1/2]

def mox.IgnoreArg.equals (   self,
  unused_rhs 
)
Ignores arguments and returns True.

Args:
  unused_rhs: any python object

Returns:
  always returns True

Reimplemented from mox.Comparator.

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

◆ equals() [2/2]

def mox.IgnoreArg.equals (   self,
  unused_rhs 
)
Ignores arguments and returns True.

Args:
  unused_rhs: any python object

Returns:
  always returns True

Reimplemented from mox.Comparator.

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