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

Public Member Functions

def equals (self, unused_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

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')

Member Function Documentation

◆ __repr__()

def mox.IgnoreArg.__repr__ (   self)

◆ equals()

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

Args:
  unused_rhs: any python object

Returns:
  always returns True

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