#NEWLINE# def test_invalid_confirm_email_page( client ) : #NEWLINE# #INDENT# print ( 'test_invalid_confirm_email_page' ) #NEWLINE# url = url_for ( 'user.confirm_email' , token = 'InvalidToken' ) #NEWLINE# client . get_invalid_page ( url , 'Invalid confirmation token' ) #NEWLINE# um = current_app . user_manager #NEWLINE# token = um . generate_token ( user1 . id ) #NEWLINE# url = url_for ( 'user.confirm_email' , token = token ) #NEWLINE# um . confirm_email_expiration = 1 #NEWLINE# time . sleep ( 2 ) #NEWLINE# client . get_invalid_page ( url , 'Your confirmation token has expired' )