# Path: disparity/apps/salary/emails.py
# class SurveyCreationEmail(mixins.BuildAbsoluteURIMixin, DisparityEmail):
#     def __init__(self, email, all_emails, token):
#     def get_context_data(self, **kwargs):


import pytest
from django.core import mail
from django.core.urlresolvers import reverse
from disparity.apps.salary.emails import (
    send_survey_creation_email,
)




@pytest.mark.django_db
def test_sending_survey_creation_email(factories):
    assert len(mail.outbox) == 0

    all_emails=factories.EmailAddressFactory.create_batch(5)
    token = factories.TokenFactory(
        prime_identifier=5,
        survey_id='some-id',
    )
    detail_url = reverse('survey-detail', kwargs={'token': token})

# Path: disparity/apps/salary/emails.py
# class SurveyCreationEmail(mixins.BuildAbsoluteURIMixin, DisparityEmail):
#     def __init__(self, email, all_emails, token):
#     def get_context_data(self, **kwargs):


# Path: tests/salary/test_survey_creation_email.py
import pytest
from django.core import mail
from django.core.urlresolvers import reverse
from disparity.apps.salary.emails import (
    send_survey_creation_email,
)





@pytest.mark.django_db
def test_sending_survey_creation_email(factories):
    assert len(mail.outbox) == 0

    all_emails=factories.EmailAddressFactory.create_batch(5)
    token = factories.TokenFactory(
        prime_identifier=5,
        survey_id='some-id',
    )
    detail_url = reverse('survey-detail', kwargs={'token': token})

    send_survey_creation_email(