# -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals

from snapshottest import Snapshot


snapshots = Snapshot()

snapshots["test_run_offline_audit 1"] = {
    "Contest 1 - candidate 1": 50,
    "Contest 1 - candidate 2": 30,
    "Contest 2 - candidate 1": 30,
    "Contest 2 - candidate 2": 45,
    "Contest 2 - candidate 3": 20,
}

snapshots[
    "test_run_offline_audit 2"
] = """######## ELECTION INFO ########\r
Organization,Election Name,State\r
Test Org test_run_offline_audit,Test Election,CA\r
\r
######## CONTESTS ########\r
Contest Name,Targeted?,Number of Winners,Votes Allowed,Total Ballots Cast,Tabulated Votes\r
Contest 1,Targeted,1,1,1000,candidate 1: 600; candidate 2: 400\r
Contest 2,Opportunistic,2,2,600,candidate 1: 200; candidate 2: 300; candidate 3: 100\r
\r
######## AUDIT SETTINGS ########\r
Audit Name,Audit Type,Audit Math Type,Risk Limit,Random Seed,Online Data Entry?\r
Test Audit test_run_offline_audit,BALLOT_POLLING,BRAVO,10%,1234567890,No\r
\r
######## ROUNDS ########\r
Round Number,Contest Name,Targeted?,Sample Size,Risk Limit Met?,P-Value,Start Time,End Time,Audited Votes\r
1,Contest 1,Targeted,100,Yes,0.08876425,DATETIME,DATETIME,candidate 1: 50; candidate 2: 30\r
1,Contest 2,Opportunistic,,No,0.5938312972,DATETIME,DATETIME,candidate 1: 30; candidate 2: 45; candidate 3: 20\r
\r
######## SAMPLED BALLOTS ########\r
Jurisdiction Name,Batch Name,Ballot Position,Ticket Numbers: Contest 1\r
J1,1,3,Round 1: 0.088404500051420169\r
J1,1,4,Round 1: 0.056455363529765325\r
J1,1,6,Round 1: 0.063938772948313277\r
J1,1,23,Round 1: 0.026709936196363079\r
J1,2,2,Round 1: 0.091912034655946169\r
J1,2,6,Round 1: 0.028662515227396225\r
J1,2,25,Round 1: 0.023369462249873393\r
J1,2,29,Round 1: 0.071025445549972134\r
J1,2,30,Round 1: 0.028807763145463000\r
J1,2,70,Round 1: 0.032079033020155699\r
J1,2,75,Round 1: 0.035640239666365080\r
J1,2,77,Round 1: 0.061243853397465359\r
J1,2,84,Round 1: 0.095975333017344763\r
J1,2,88,Round 1: 0.071804966402309250\r
J1,2,89,Round 1: 0.054646592241035729\r
J1,3,2,Round 1: 0.096258425102788892\r
J1,3,11,Round 1: 0.093515621534103985\r
J1,3,38,Round 1: 0.018230756390081779\r
J1,3,40,Round 1: 0.014739823561707141\r
J1,3,50,Round 1: 0.001315804865633048\r
J1,3,82,Round 1: 0.046244912686705392\r
J1,3,97,Round 1: 0.000454186428506763\r
J1,3,100,Round 1: 0.000619826143680938\r
J1,3,106,Round 1: 0.061350998660180108\r
J1,3,117,Round 1: 0.026152774099611906\r
J1,3,121,Round 1: 0.068048811291378543\r
J1,4,3,Round 1: 0.010306372247476217\r
J1,4,5,"Round 1: 0.080704071573746128, 0.099341639942774926"\r
J1,4,7,Round 1: 0.042092437205341423\r
J1,4,26,Round 1: 0.074248137323249137\r
J1,4,44,Round 1: 0.042228065622768503\r
J1,4,61,Round 1: 0.054099586219482054\r
J1,4,63,Round 1: 0.003836186945975918\r
J1,4,66,Round 1: 0.096975818551066342\r
J1,4,67,Round 1: 0.091470963043987134\r
J1,4,90,Round 1: 0.032834360453541187\r
J1,4,105,Round 1: 0.023112222444256629\r
J1,4,117,Round 1: 0.082550146523358971\r
J1,4,120,Round 1: 0.075775152592425405\r
J1,4,166,Round 1: 0.077882036529627073\r
J1,4,177,Round 1: 0.077933165074758787\r
J1,4,198,Round 1: 0.070349800984198330\r
J1,4,208,Round 1: 0.036612236698180247\r
J1,4,215,Round 1: 0.040595725718922402\r
J1,4,217,Round 1: 0.062330471179110521\r
J1,4,220,Round 1: 0.068494770695355835\r
J1,4,222,Round 1: 0.072280927514051282\r
J1,4,241,Round 1: 0.069869996497425336\r
J1,4,249,Round 1: 0.046501275943279774\r
J1,4,256,Round 1: 0.040546706799122951\r
J1,4,263,Round 1: 0.013595936546478868\r
J1,4,273,Round 1: 0.029372995614232565\r
J1,4,290,Round 1: 0.000461433395583052\r
J1,4,294,Round 1: 0.085416334659259955\r
J1,4,308,Round 1: 0.051954609019659065\r
J1,4,325,Round 1: 0.059827989431571177\r
J1,4,335,Round 1: 0.077728803876745538\r
J1,4,336,Round 1: 0.085191621074810971\r
J1,4,338,Round 1: 0.097544908368535753\r
J1,4,347,Round 1: 0.032225479026399263\r
J1,4,364,"Round 1: 0.014195240836456557, 0.067991977068525173"\r
J1,4,375,Round 1: 0.028954249616875816\r
J1,4,376,Round 1: 0.041784965549179532\r
J1,4,383,Round 1: 0.037428227356516192\r
J1,4,390,Round 1: 0.023508408392288091\r
J1,4,400,Round 1: 0.033664359681262958\r
J2,1,3,Round 1: 0.026974562209906179\r
J2,1,18,Round 1: 0.014104975821697965\r
J2,2,4,Round 1: 0.044147335849878093\r
J2,2,6,Round 1: 0.011988982664080463\r
J2,2,10,Round 1: 0.045351581516619860\r
J2,3,18,Round 1: 0.069668342793075274\r
J2,3,30,Round 1: 0.042672901163402832\r
J2,3,32,Round 1: 0.089615926764951869\r
J2,3,47,Round 1: 0.040062098731520309\r
J2,3,51,Round 1: 0.096120553260524803\r
J2,3,56,Round 1: 0.091048982285661053\r
J2,3,58,Round 1: 0.045253125083783178\r
J2,3,61,Round 1: 0.096604572871094987\r
J2,3,71,Round 1: 0.088124330140694101\r
J2,3,76,Round 1: 0.077988294597998248\r
J2,3,97,Round 1: 0.096444576053280526\r
J2,3,101,"Round 1: 0.014786076170605607, 0.033699457455768933"\r
J2,3,106,Round 1: 0.045266995759010649\r
J2,3,110,Round 1: 0.072858131275512064\r
J2,3,122,Round 1: 0.073465505074563528\r
J2,3,154,Round 1: 0.010022804537356634\r
J2,3,165,Round 1: 0.047889972941670238\r
J2,3,174,Round 1: 0.059804486813794551\r
J2,3,180,Round 1: 0.083278065379106609\r
J2,3,181,Round 1: 0.077209685743241616\r
J2,3,191,Round 1: 0.073322038933809532\r
J2,3,196,Round 1: 0.034526859969954916\r
J2,3,206,Round 1: 0.028858006840055629\r
J2,3,214,Round 1: 0.082699452005387947\r
J2,4,34,Round 1: 0.060816634473886193\r
J2,4,37,Round 1: 0.092786549356518562\r
"""
