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

Public Member Functions

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

 _class_name
 

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

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

Constructor & Destructor Documentation

◆ __init__() [1/2]

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

Args:
  class_name: basic python type or a class

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

◆ __init__() [2/2]

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

Args:
  class_name: basic python type or a class

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

Member Function Documentation

◆ __repr__() [1/2]

def mox.IsA.__repr__ (   self)

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

◆ __repr__() [2/2]

def mox.IsA.__repr__ (   self)

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

◆ equals() [1/2]

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

Reimplemented from mox.Comparator.

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

◆ equals() [2/2]

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

Reimplemented from mox.Comparator.

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

Member Data Documentation

◆ _class_name

mox.IsA._class_name
private

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