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

Public Member Functions

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

This class wraps a basic Python type or class.  It is used to verify
that a parameter is of the given type or class.

Example:
mock_dao.Connect(IsA(DbConnectInfo))

Constructor & Destructor Documentation

◆ __init__()

def mox.IsA.__init__ (   self,
  class_name 
)
Initialize IsA

Args:
  class_name: basic python type or a class

Member Function Documentation

◆ __repr__()

def mox.IsA.__repr__ (   self)

◆ equals()

def mox.IsA.equals (   self,
  rhs 
)
Check to see if the RHS is an instance of class_name.

Args:
  # rhs: the right hand side of the test
  rhs: object

Returns:
  bool

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