annotate pythonServer-legacy.py @ 1318:64541cd9265d

Added schema for Test Specification Document for validation (wip)
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 23 Dec 2015 12:41:08 +0000
parents
children
rev   line source
nickjillings@1318 1 import SimpleHTTPServer
nickjillings@1318 2 import SocketServer
nickjillings@1318 3
nickjillings@1318 4 PORT = 8080
nickjillings@1318 5
nickjillings@1318 6 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
nickjillings@1318 7
nickjillings@1318 8 httpd = SocketServer.TCPServer(("", PORT), Handler)
nickjillings@1318 9
nickjillings@1318 10 print "serving at port", PORT
nickjillings@1318 11 httpd.serve_forever()