Exemplo n.º 1
0
def race_four():
    #simultaneously eleminte 2 candidates in second round
    try:
        race = Race.objects.get(name='Test Four')
    except:
        loaders.test_scenario_four()
    rcv_calculator.do_rcv('Test Four')
Exemplo n.º 2
0
def race_two():
    #test to show we exhaust all votes and store the count properly
    try:
        race = Race.objects.get(name='Test Two')
    except:
        loaders.test_scenario_two()
    rcv_calculator.do_rcv('Test Two')
Exemplo n.º 3
0
def race_three():
    #two candidates are eleminated
    try:
        race = Race.objects.get(name='Test Three')
    except:
        loaders.test_scenario_three()
    rcv_calculator.do_rcv('Test Three')
Exemplo n.º 4
0
def race_one():
    #simple test to show first and second choices are working
    try:
        race = Race.objects.get(name='Test One')
    except:
        loaders.test_scenario_one()
    rcv_calculator.do_rcv('Test One')