# Path: disparity/apps/salary/utils.py
# SURVEY_TOKEN_SALT = 'salary:survey'
# SURVEY_TOKEN_MAX_AGE = 60 * 60 * 24 * 7  # 7 days
# def get_survey_unique_primes(*emails):
# def generate_survey_token(seed, prime_identifier, is_admin, survey_id):
# def unsign_survey_token(token):


import operator
from disparity.apps.salary.utils import (
    PRIMES,
)



def test_tracker_getting(factories):
    survey = factories.SurveyFactory()

    survey.tracker = 12345L

    assert survey._tracker == '12345'
    assert survey.tracker == 12345L


def test_tracker_setting_with_huge_number(factories, models):

# Path: disparity/apps/salary/utils.py
# SURVEY_TOKEN_SALT = 'salary:survey'
# SURVEY_TOKEN_MAX_AGE = 60 * 60 * 24 * 7  # 7 days
# def get_survey_unique_primes(*emails):
# def generate_survey_token(seed, prime_identifier, is_admin, survey_id):
# def unsign_survey_token(token):


# Path: tests/salary/test_survey_tracker_property.py
import operator
from disparity.apps.salary.utils import (
    PRIMES,
)




def test_tracker_getting(factories):
    survey = factories.SurveyFactory()

    survey.tracker = 12345L

    assert survey._tracker == '12345'
    assert survey.tracker == 12345L


def test_tracker_setting_with_huge_number(factories, models):

    huge_number = reduce(operator.mul, PRIMES)