Package cherrypy :: Package test :: Module helper :: Class LocalSupervisor
[hide private]
[frames] | no frames]

Class LocalSupervisor

source code

object --+    
         |    
Supervisor --+
             |
            LocalSupervisor
Known Subclasses:

Base class for modeling/controlling servers which run in the same process.

When the server side runs in a different process, start/stop can dump all state between each test module easily. When the server side runs in the same process as the client, however, we have to do a bit more work to ensure config and mounted apps are reset between tests.

Instance Methods [hide private]
 
__init__(self, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
start(self, modulename=None)
Load and start the HTTP server.
source code
 
sync_apps(self)
Tell the server about any apps which the setup functions mounted.
source code
 
stop(self) source code

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

Class Variables [hide private]
  using_apache = False
  using_wsgi = False
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)