Exemple #1
0
 def test_serve_interrupt(self):
     """Verify the server can be interrupted."""
     self.assertFalse(server.run(path=self.temp))
Exemple #2
0
def serve(*args, **kwargs):
    """Wrap main server entry point."""
    return server.run(*args, **kwargs)
Exemple #3
0
 def test_serve_exit(self):
     """Verify the server process can exit normally."""
     self.assertTrue(server.run(path=self.temp))
Exemple #4
0
 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))
Exemple #5
0
 def test_serve_interrupt(self):
     """Verify the server can be interrupted."""
     self.assertFalse(server.run(path=self.temp))
Exemple #6
0
 def test_serve_exit(self):
     """Verify the server process can exit normally."""
     self.assertTrue(server.run(path=self.temp))
Exemple #7
0
 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))