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

Class MockWindow

source code


Instance Methods [hide private]
 
__init__(self, *args)
The Mock class constructor takes a dictionary of method names and the values they return.
source code
 
get_control(self, jid, account) source code
 
has_control(self, jid, acct) source code
 
new_tab(self, ctrl) source code
 
__nonzero__(self) source code

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

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args)
(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)

get_control(self, jid, account)

source code 

has_control(self, jid, acct)

source code 

new_tab(self, ctrl)

source code 

__nonzero__(self)
(Boolean test operator)

source code