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

Public Member Functions

def __init__ (self, expected_seq)
 
def __init__ (self, expected_seq)
 
def __repr__ (self)
 
def __repr__ (self)
 
def equals (self, actual_seq)
 
def equals (self, actual_seq)
 
- 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

 _expected_seq
 

Detailed Description

Checks whether iterables contain the same elements (ignoring order).

Example:
mock_dao.ProcessUsers(SameElementsAs('stevepm', 'salomaki'))

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

Constructor & Destructor Documentation

◆ __init__() [1/2]

def mox.SameElementsAs.__init__ (   self,
  expected_seq 
)
Initialize.

Args:
  expected_seq: a sequence

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

◆ __init__() [2/2]

def mox.SameElementsAs.__init__ (   self,
  expected_seq 
)
Initialize.

Args:
  expected_seq: a sequence

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

Member Function Documentation

◆ __repr__() [1/2]

def mox.SameElementsAs.__repr__ (   self)

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

◆ __repr__() [2/2]

def mox.SameElementsAs.__repr__ (   self)

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

◆ equals() [1/2]

def mox.SameElementsAs.equals (   self,
  actual_seq 
)
Check to see whether actual_seq has same elements as expected_seq.

Args:
  actual_seq: sequence

Returns:
  bool

Reimplemented from mox.Comparator.

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

◆ equals() [2/2]

def mox.SameElementsAs.equals (   self,
  actual_seq 
)
Check to see whether actual_seq has same elements as expected_seq.

Args:
  actual_seq: sequence

Returns:
  bool

Reimplemented from mox.Comparator.

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

Member Data Documentation

◆ _expected_seq

mox.SameElementsAs._expected_seq
private

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