Commits

Brent Tubbs committed 88200eb

add uptest

Comments (0)

Files changed (2)

 Jinja2==2.6
 Werkzeug==0.8.3
 wsgiref==0.1.2
+requests==1.0.4

uptests/web/itworks.py

+#!/usr/bin/env python
+
+import sys
+
+import requests
+
+def test_http_homepage(hostname, port):
+    # Make an http request to the root path on hostname:port.  If we get a
+    # non-error response, we're all good.
+    resp = requests.get('http://%s:%s' % (hostname, port))
+    resp.raise_for_status()
+    print "Output: %s" % resp.content
+
+
+if __name__ == '__main__':
+    test_http_homepage(sys.argv[1], sys.argv[2])