def startService(cls):
     """Start the webservice."""
     googletestservice.kill_running_process()
     cls.service = googletestservice.start_as_process()
     assert cls.service, "The Search service process did not start."
     try:
         googletestservice.wait_for_service()
     except RuntimeError:
         # The service didn't start itself soon enough.  We must
         # make sure to kill any errant processes that may be
         # hanging around.
         cls.stopService()
         raise
 def startService(cls):
     """Start the webservice."""
     googletestservice.kill_running_process()
     cls.service = googletestservice.start_as_process()
     assert cls.service, "The Search service process did not start."
     try:
         googletestservice.wait_for_service()
     except RuntimeError:
         # The service didn't start itself soon enough.  We must
         # make sure to kill any errant processes that may be
         # hanging around.
         cls.stopService()
         raise
 def launch(self):
     self.addCleanup(stop_process, googletestservice.start_as_process())