Example #1
0
def run(port, debug):
    app = App()

    try:
        app.run()
    except KeyboardInterrupt:
        app.stop()
Example #2
0
def test_app_stop():
    app = App()
    app.stop()

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