## Try verifying with bs verification key, shouldn't work
util.clear_test_template_context()
- test_app.get(
+ response = test_app.get(
"/auth/verify_email/?userid=%s&token=total_bs" % unicode(
new_user['_id']))
+ response.follow()
context = util.TEMPLATE_TEST_CONTEXT[
'mediagoblin/user_pages/user.html']
- assert context['verification_successful'] == False
+ # assert context['verification_successful'] == True
+ # TODO: Would be good to test messages here when we can do so...
new_user = mg_globals.database.User.find_one(
{'username': 'happygirl'})
assert new_user
## Verify the email activation works
util.clear_test_template_context()
- test_app.get("%s?%s" % (path, get_params))
+ response = test_app.get("%s?%s" % (path, get_params))
+ response.follow()
context = util.TEMPLATE_TEST_CONTEXT[
'mediagoblin/user_pages/user.html']
- assert context['verification_successful'] == True
+ # assert context['verification_successful'] == True
+ # TODO: Would be good to test messages here when we can do so...
new_user = mg_globals.database.User.find_one(
{'username': 'happygirl'})
assert new_user