Пример #1
0
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
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()