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'
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'