From b7c6edf9d519ee1f3516d6e4cf60ca25269a74d0 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Tue, 26 Mar 2019 22:15:05 +0100 Subject: Tornado HelloWorld --- tests/test_app.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/test_app.py (limited to 'tests') 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) -- cgit v1.2.3