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) |
![]() | |
def | __eq__ (self, rhs) |
def | __eq__ (self, rhs) |
def | __ne__ (self, rhs) |
def | __ne__ (self, rhs) |
Private Attributes | |
_class_name | |
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.
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.
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.
def mox.IsA.__repr__ | ( | self | ) |
Definition at line 825 of file bloaty/third_party/protobuf/python/mox.py.
def mox.IsA.__repr__ | ( | self | ) |
Definition at line 825 of file protobuf/python/mox.py.
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.
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.
|
private |
Definition at line 805 of file bloaty/third_party/protobuf/python/mox.py.