Ejemplo n.º 1
0
def run(port, debug):
    app = App()

    try:
        app.run()
    except KeyboardInterrupt:
        app.stop()
Ejemplo n.º 2
0
def test_app_stop():
    app = App()
    app.stop()

    assert app.loop.is_closed()
    assert app.session.closed