Exemple #1
0
def run_server():
    bottle.run(host="localhost", port=8001)
Exemple #2
0
 def setUp(self):
     self.server = multiprocessing.Process(
         target=lambda: bottle.run(host='localhost', port=8001))
     self.server.start()
     self.browser = mechanize.Browser()
     time.sleep(1)