Package lib :: Module gajim_mocks :: Class MockSession
[hide private]
[frames] | no frames]

Class MockSession

source code


Instance Methods [hide private]
 
__init__(self, conn, jid, thread_id, type_)
The Mock class constructor takes a dictionary of method names and the values they return.
source code
 
__repr__(self)
repr(x)
source code
 
__nonzero__(self) source code
 
__eq__(self, other) source code

Inherited from mock.Mock: __getattr__, getAllCalls, getNamedCalls, mockAddReturnValues, mockCheckCall, mockGetAllCalls, mockGetNamedCalls, mockSetExpectation

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, conn, jid, thread_id, type_)
(Constructor)

source code 
The Mock class constructor takes a dictionary of method names and the values they return. Methods that are not in the returnValues dictionary will return None. You may also supply a class whose interface is being mocked. All calls will be checked to see if they appear in the original interface. Any calls to methods not appearing in the real class will raise a MockInterfaceError. Any calls that would fail due to non-matching parameter lists will also raise a MockInterfaceError. Both of these help to prevent the Mock class getting out of sync with the class it is Mocking.
Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

__nonzero__(self)
(Boolean test operator)

source code 

__eq__(self, other)
(Equality operator)

source code