def test_serve_interrupt(self): """Verify the server can be interrupted.""" self.assertFalse(server.run(path=self.temp))
def serve(*args, **kwargs): """Wrap main server entry point.""" return server.run(*args, **kwargs)
def test_serve_exit(self): """Verify the server process can exit normally.""" self.assertTrue(server.run(path=self.temp))
def test_serve(self): """Verify the server can be started and stopped.""" packages = os.path.join(self.temp, 'packages') self.assertTrue(server.run(path=packages, forever=False))
def test_serve(self): """Verify the server can be started and stopped.""" packages = os.path.join(self.temp, "packages") self.assertTrue(server.run(path=packages, forever=False))