Package lib :: Module xmpp_mocks :: Class IdleMock
[hide private]
[frames] | no frames]

Class IdleMock

source code


Serves as template for testing objects that are normally controlled by GUI. Allows to wait for asynchronous callbacks with wait() method.
Instance Methods [hide private]
 
__init__(self) source code
 
wait(self)
Block until some callback sets the event and clearing the event subsequently.
source code
 
set_event(self) source code
Method Details [hide private]

__init__(self)
(Constructor)

source code 

wait(self)

source code 
Block until some callback sets the event and clearing the event subsequently. Returns True if event was set, False on timeout

set_event(self)

source code