@auth.route('/sign-up', methods=['GET', 'POST'])
def sign_up():
    form = SignUpForm(request.form)

    if form.validate_on_submit():
        try:
            user = create_user(form)
            session['user_id'] = user.id

            return redirect(url_for('main.account'))

        except AuthyApiException:
            form.errors['Authy API'] = ['There was an error creating the Authy user']

    return render_template('signup.html', form=form)
Sample Dean Test
dataset/ETHPy150Open TwilioDevEd/authy2fa-flask/twofa/auth/views.py/sign_up--crossover with--dataset/ETHPy150Open neurodata/ndstore/util/testRest.py/postImage