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

Public Member Functions

def __init__ (self, expected_seq)
 
def equals (self, actual_seq)
 
def __repr__ (self)
 
- Public Member Functions inherited from mox.Comparator
def equals (self, rhs)
 
def __eq__ (self, rhs)
 
def __ne__ (self, rhs)
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __init__()

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

Args:
  expected_seq: a sequence

Member Function Documentation

◆ __repr__()

def mox.SameElementsAs.__repr__ (   self)

◆ equals()

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

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