from tornado.testing import AsyncHTTPTestCase from pyapd import app, config class TestApp(AsyncHTTPTestCase): def get_app(self, *args, **kw): return app.App(config.Config('tests/data/test_config.yaml')) def test_root(self): res = self.fetch('/') self.assertEqual(res.code, 200)