예제 #1
0
def test_when_concert_unspecified_location():
    response = botcontrol.when_concert(
        intent_request_mock('WhenConcert', {u'location': None}))
    assert response['dialogAction']['type'] == 'ElicitSlot'
예제 #2
0
def test_when_concert_by_area():
    response = botcontrol.when_concert(
        intent_request_mock('WhenConcert', {u'location': 'Europe'}))
    assert response['dialogAction']['type'] == 'ElicitSlot'
예제 #3
0
def test_when_concert_by_venue():
    response = botcontrol.when_concert(
        intent_request_mock('WhenConcert', {u'location': 'Olympiahalle'}))
    assert response['dialogAction']['type'] == 'Close'
예제 #4
0
def test_when_concert_with_single_concert_country():
    response = botcontrol.when_concert(
        intent_request_mock('WhenConcert', {u'location': 'Switzerland'}))
    assert response['dialogAction']['type'] == 'Close'
예제 #5
0
def test_when_concert_with_multiple_concerts_country():
    response = botcontrol.when_concert(
        intent_request_mock('WhenConcert', {u'location': 'United States'}))
    assert response['dialogAction']['type'] == 'ElicitSlot'
예제 #6
0
def test_when_concert_with_city():
    response = botcontrol.when_concert(
        intent_request_mock('WhenConcert', {u'location': 'Miami'}))
    assert response['dialogAction']['type'] == 'Close'