コード例 #1
0
ファイル: test_app.py プロジェクト: Anhmike/alexandra
def test_sanity():
    '''If this fails the sky is falling.'''
    app = Application()

    assert app.dispatch_request(_request('LaunchRequest')) == app.launch_fn(None)
    assert app.dispatch_request(_intent('Foo')) == app.unknown_intent_fn(None, None)
    assert app.dispatch_request(_request('SessionEndedRequest')) == app.session_end_fn()
コード例 #2
0
ファイル: test_app.py プロジェクト: DasBasti/alexandra
def test_sanity():
    '''If this fails the sky is falling.'''
    app = Application()

    assert app.dispatch_request(
        _request('LaunchRequest')) == app.launch_fn(None)
    assert app.dispatch_request(_intent('Foo')) == app.unknown_intent_fn(
        None, None)
    assert app.dispatch_request(
        _request('SessionEndedRequest')) == app.session_end_fn()