diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-03-26 22:15:05 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-03-26 22:15:05 +0100 |
commit | b7c6edf9d519ee1f3516d6e4cf60ca25269a74d0 (patch) | |
tree | 0fe64999e0b46bc38bfe29fa434532dc78ff7817 /tests | |
parent | 253235e8c583e383695874607bf727430d316520 (diff) |
Tornado HelloWorld
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_app.py | 12 |
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) |