def METHOD_NAME(phase_factory, token_package_factory):
    phase, module, project, item = setup_phase(phase_factory, None, VotingPhase)
    package = token_package_factory(module=module, size=2)
    generate_voting_tokens_batch.now(module.id, 2, package.pk)
    tokens = VotingToken.objects.all()
    salt = TokenSalt.get_or_create_salt_for_module(module)
    assert tokens.count() == 2
    for t in tokens:
        token_hash = hashlib.sha3_512((salt + t.token).encode()).hexdigest()
        assert token_hash == t.token_hash