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