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

Public Member Functions

def __init__ (self, unexpected_method, expected)
 
def __str__ (self)
 

Private Attributes

 _expected
 
 _unexpected_method
 

Detailed Description

Raised when an unexpected method is called.

This can occur if a method is called with incorrect parameters, or out of the
specified order.

Definition at line 102 of file mox.py.

Constructor & Destructor Documentation

◆ __init__()

def mox.UnexpectedMethodCallError.__init__ (   self,
  unexpected_method,
  expected 
)
Init exception.

Args:
  # unexpected_method: MockMethod that was called but was not at the head of
  #   the expected_method queue.
  # expected: MockMethod or UnorderedGroup the method should have
  #   been in.
  unexpected_method: MockMethod
  expected: MockMethod or UnorderedGroup

Definition at line 109 of file mox.py.

Member Function Documentation

◆ __str__()

def mox.UnexpectedMethodCallError.__str__ (   self)

Definition at line 125 of file mox.py.

Member Data Documentation

◆ _expected

mox.UnexpectedMethodCallError._expected
private

Definition at line 123 of file mox.py.

◆ _unexpected_method

mox.UnexpectedMethodCallError._unexpected_method
private

Definition at line 122 of file mox.py.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:11