def test_send_activation_token_to_user(default_settings, user):
 with current_app.test_request_context():
  with mail.record_messages() as outbox:
   send_activation_token(user)
   assert (len(outbox) == 1)
   assert ('/auth/activate' in outbox[0].body)
   assert ('/auth/activate' in outbox[0].html)

def test_send_activation_token_to_user ( default_settings , user ) : with current_app . test_request_context ( ) : with mail . record_messages ( ) as outbox : send_activation_token ( user ) assert ( len ( outbox ) == 1 ) assert ( '/auth/activate' in outbox [ 0 ] . body ) assert ( '/auth/activate' in outbox [ 0 ] . html )
deliver a contact email .