示例#1
0
def test_confirm_invalid_user_location_returns_not_understood(text_mock):
    text_mock.return_value = cannot_understand_response
    lv = LocationVerification(LocationName='room', PersonName='calvin')
    resp = lv.send_confirm_response(TextResponse='asdasdsdasd')
    assert resp == 'NotUnderstood'
示例#2
0
def test_confirm_user_location_returns_true(text_mock):
    text_mock.return_value = user_confirmed_response
    lv = LocationVerification(LocationName='room', PersonName='calvin')
    resp = lv.send_confirm_response(TextResponse='OK')
    assert resp == 'Confirmed'