Exemplo n.º 1
0
def test_ga_presidential_16(dbname):
    assert (not e.data_exists("2016 General", "Georgia", dbname=dbname)
            or e.contest_total(
                "2016 General",
                "Georgia",
                "US President (GA)",
                dbname=dbname,
            ) == 4092373)
Exemplo n.º 2
0
def test_ga_senate_totals_16(dbname):
    assert (not e.data_exists("2016 General", "Georgia", dbname=dbname)
            or e.contest_total(
                "2016 General",
                "Georgia",
                "GA Senate District 13",
                dbname=dbname,
            ) == 60387)
Exemplo n.º 3
0
def test_ga_house_totals_16(dbname):
    assert (not e.data_exists("2016 General", "Georgia", dbname=dbname)
            or e.contest_total(
                "2016 General",
                "Georgia",
                "GA House District 7",
                dbname=dbname,
            ) == 21666)
Exemplo n.º 4
0
def test_ga_statewide_totals_16(dbname):
    assert (not e.data_exists("2016 General", "Georgia", dbname=dbname)
            or e.contest_total(
                "2016 General",
                "Georgia",
                "US Senate GA",
                dbname=dbname,
            ) == 3897792)
Exemplo n.º 5
0
def test_ga_contest_by_vote_type_16(dbname):
    assert (not e.data_exists("2016 General", "Georgia", dbname=dbname)
            or e.count_type_total(
                "2016 General",
                "Georgia",
                "GA House District 7",
                "absentee-mail",
                dbname=dbname,
            ) == 1244)
Exemplo n.º 6
0
def test_in_presidential_16(dbname):
    assert (
        not e.data_exists("2016 General", "Indiana", dbname=dbname)
        or e.contest_total(
            "2016 General",
            "Indiana",
            "US President (IN)",
            dbname=dbname,
        )
        == 2728138
    )
Exemplo n.º 7
0
def test_in_house_totals_16(dbname):
    assert (
        not e.data_exists("2016 General", "Indiana", dbname=dbname)
        or e.contest_total(
            "2016 General",
            "Indiana",
            "IN House District 13",
            dbname=dbname,
        )
        == 26712
    )
Exemplo n.º 8
0
def test_in_statewide_totals_16(dbname):
    assert (
        not e.data_exists("2016 General", "Indiana", dbname=dbname)
        or e.contest_total(
            "2016 General",
            "Indiana",
            "IN Attorney General",
            dbname=dbname,
        )
        == 2635832
    )
Exemplo n.º 9
0
def test_in_senate_totals_16(dbname):
    assert (
        not e.data_exists("2016 General", "Indiana", dbname=dbname)
        or e.contest_total(
            "2016 General",
            "Indiana",
            "IN Senate District 7",
            dbname=dbname,
        )
        == 50622
    )
Exemplo n.º 10
0
def test_data_exists(dbname):
    assert e.data_exists("2016 General", "Colorado", dbname=dbname)
Exemplo n.º 11
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "Washington", dbname=dbname)
Exemplo n.º 12
0
def test_data_exists(dbname):
    assert e.data_exists("2020 General","Iowa",dbname=dbname)
Exemplo n.º 13
0
def test_data_exists(dbname):
    assert e.data_exists("2020 Primary", "Delaware", dbname=dbname)
Exemplo n.º 14
0
def test_data_exists(dbname):
    assert e.data_exists("2020 Primary", "Minnesota", dbname=dbname)
Exemplo n.º 15
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "California", dbname=dbname)
Exemplo n.º 16
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "Texas", dbname=dbname)
Exemplo n.º 17
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "Illinois", dbname=dbname)
Exemplo n.º 18
0
def test_data_exists(dbname):
    assert e.data_exists("2016 General", "Michigan", dbname=dbname)
Exemplo n.º 19
0
def test_ga_totals_match_vote_type_16(dbname):
    assert (not e.data_exists("2016 General", "Georgia", dbname=dbname)
            or e.check_totals_match_vote_types(
                "2016 General", "Georgia", dbname=dbname) == True)
Exemplo n.º 20
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "Georgia", dbname=dbname)
Exemplo n.º 21
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "Florida", dbname=dbname)
Exemplo n.º 22
0
def test_data_exists(dbname):
    assert e.data_exists("2016 General", "Wisconsin", dbname=dbname)
Exemplo n.º 23
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "Minnesota", dbname=dbname)
Exemplo n.º 24
0
def test_data_exists(dbname):
    assert e.data_exists("2020 Primary", "Arizona", dbname=dbname)
Exemplo n.º 25
0
def test_data_exists(dbname):
    assert e.data_exists("2020 Primary", "Illinois", dbname=dbname)
Exemplo n.º 26
0
def test_data(dbname):
    assert e.data_exists("2020 Primary", "Iowa", dbname=dbname)
Exemplo n.º 27
0
def data_exists(dbname):
    assert e.data_exists("2020 General", f"{jurisdiction}", dbname=dbname)
Exemplo n.º 28
0
def test_data_exists(dbname):
    assert e.data_exists("2020 Primary", "Virginia", dbname=dbname)
Exemplo n.º 29
0
def test_data_exists(dbname):
    assert e.data_exists(election, jurisdiction, dbname=dbname)
Exemplo n.º 30
0
def test_data(dbname):
    assert e.data_exists("2016 General", "North Carolina", dbname=dbname)