def METHOD_NAME(self, mock_site_configuration, mock_get_current_site, mock_log):
    """
    Tests that the "from_address" is pulled from the site configuration.
    """
    site = SiteFactory.create()
    mock_get_current_site.return_value = site
    expected_from_email_address = 'test-no-reply@example.com'
    site_config = SiteConfigurationFactory.create(site=site, site_values={
        'ACTIVATION_EMAIL_FROM_ADDRESS': expected_from_email_address
    })
    mock_site_configuration.return_value = site_config
    compose_and_send_activation_email(self.student, self.student.profile, self.student.registration)
    mock_log.exception.assert_called_with(
        'Unable to send activation email to user from "%s" to "%s"',
        expected_from_email_address,
        self.student.email,
    )