aboutsummaryrefslogtreecommitdiff
path: root/tests/pyquick/test_index_rest.py
diff options
context:
space:
mode:
authorskyblue <ssx205@gmail.com>2014-03-31 13:30:32 +0800
committerskyblue <ssx205@gmail.com>2014-03-31 13:30:32 +0800
commit74ff217c7e8855c5ccf6dbc69cee0823cd65ee1b (patch)
treef5a5b87f54ca603e11c945800c1a12e2a3e3b6f7 /tests/pyquick/test_index_rest.py
parente938863ae6887f7c3c24145ed3b64dc1d27ee675 (diff)
add tests
Diffstat (limited to 'tests/pyquick/test_index_rest.py')
-rw-r--r--tests/pyquick/test_index_rest.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pyquick/test_index_rest.py b/tests/pyquick/test_index_rest.py
new file mode 100644
index 00000000..be0bf183
--- /dev/null
+++ b/tests/pyquick/test_index_rest.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+# coding: utf-8
+#
+#
+
+import requests
+
+HOST = 'http://localhost:3000'
+
+def test_index_get():
+ r = requests.get(HOST + '/')
+ assert r.status_code == 200
+