aboutsummaryrefslogtreecommitdiff
path: root/tests/test_app.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-03-26 22:15:05 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-03-26 22:15:05 +0100
commitb7c6edf9d519ee1f3516d6e4cf60ca25269a74d0 (patch)
tree0fe64999e0b46bc38bfe29fa434532dc78ff7817 /tests/test_app.py
parent253235e8c583e383695874607bf727430d316520 (diff)
Tornado HelloWorld
Diffstat (limited to 'tests/test_app.py')
-rw-r--r--tests/test_app.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_app.py b/tests/test_app.py
new file mode 100644
index 0000000..a2ff27a
--- /dev/null
+++ b/tests/test_app.py
@@ -0,0 +1,12 @@
+from tornado.testing import AsyncHTTPTestCase
+
+from pyapd import app
+
+
+class TestApp(AsyncHTTPTestCase):
+ def get_app(self, *args, **kw):
+ return app.App()
+
+ def test_root(self):
+ res = self.fetch('/')
+ self.assertEqual(res.code, 200)