Esempio n. 1
0
 def test_launch_app(self):
     self.assertEquals(0, self.service.port)
     launcher = service.Launcher()
     launcher.launch_server(self.service)
     # Give spawned thread a chance to execute
     greenthread.sleep(0)
     self.assertNotEquals(0, self.service.port)
     launcher.stop()
Esempio n. 2
0
 def test_launch_app(self):
     launcher = service.Launcher()
     launcher.launch_server(self.service)
     self.assertNotEquals(0, self.service.port)
     launcher.stop()