aboutsummaryrefslogtreecommitdiff
path: root/tests/test_app.py
blob: 1ff504c718544bcc636fb791cc08f1b57d9c041c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)