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)