Exemplo n.º 1
0
def test_when_concert_unspecified_location():
    response = botcontrol.when_concert(
        intent_request_mock('WhenConcert', {u'location': None}))
    assert response['dialogAction']['type'] == 'ElicitSlot'
Exemplo n.º 2
0
def test_when_concert_by_area():
    response = botcontrol.when_concert(
        intent_request_mock('WhenConcert', {u'location': 'Europe'}))
    assert response['dialogAction']['type'] == 'ElicitSlot'
Exemplo n.º 3
0
def test_when_concert_by_venue():
    response = botcontrol.when_concert(
        intent_request_mock('WhenConcert', {u'location': 'Olympiahalle'}))
    assert response['dialogAction']['type'] == 'Close'
Exemplo n.º 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'
Exemplo n.º 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'
Exemplo n.º 6
0
def test_when_concert_with_city():
    response = botcontrol.when_concert(
        intent_request_mock('WhenConcert', {u'location': 'Miami'}))
    assert response['dialogAction']['type'] == 'Close'