def METHOD_NAME(self, _send_email):
    new_email = 'superemail@localhost.localhost'
    self._update_account_field_discourse_up('email', new_email)
    user_id = self.global_userids['contributor']
    user = self.session.query(User).get(user_id)
    self.assertEqual(user.email_to_validate, new_email)
    self.assertNotEqual(user.email, new_email)
    _send_email.assert_called_once()
    # Simulate confirmation email validation
    nonce = self.extract_nonce(_send_email, 'validate_change_email')
    url_api_validation = '/users/validate_change_email/%s' % nonce
    self.app_post_json(url_api_validation, {}, status=200)
    self.session.expunge(user)
    user = self.session.query(User).get(user_id)
    self.assertEqual(user.email, new_email)
    self.assertIsNone(user.validation_nonce)