Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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
    )
Beispiel #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
    )
Beispiel #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
    )
Beispiel #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
    )
Beispiel #10
0
def test_data_exists(dbname):
    assert e.data_exists("2016 General", "Colorado", dbname=dbname)
Beispiel #11
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "Washington", dbname=dbname)
Beispiel #12
0
def test_data_exists(dbname):
    assert e.data_exists("2020 General","Iowa",dbname=dbname)
Beispiel #13
0
def test_data_exists(dbname):
    assert e.data_exists("2020 Primary", "Delaware", dbname=dbname)
Beispiel #14
0
def test_data_exists(dbname):
    assert e.data_exists("2020 Primary", "Minnesota", dbname=dbname)
Beispiel #15
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "California", dbname=dbname)
Beispiel #16
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "Texas", dbname=dbname)
Beispiel #17
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "Illinois", dbname=dbname)
Beispiel #18
0
def test_data_exists(dbname):
    assert e.data_exists("2016 General", "Michigan", dbname=dbname)
Beispiel #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)
Beispiel #20
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "Georgia", dbname=dbname)
Beispiel #21
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "Florida", dbname=dbname)
Beispiel #22
0
def test_data_exists(dbname):
    assert e.data_exists("2016 General", "Wisconsin", dbname=dbname)
Beispiel #23
0
def test_data_exists(dbname):
    assert e.data_exists("2018 General", "Minnesota", dbname=dbname)
Beispiel #24
0
def test_data_exists(dbname):
    assert e.data_exists("2020 Primary", "Arizona", dbname=dbname)
Beispiel #25
0
def test_data_exists(dbname):
    assert e.data_exists("2020 Primary", "Illinois", dbname=dbname)
Beispiel #26
0
def test_data(dbname):
    assert e.data_exists("2020 Primary", "Iowa", dbname=dbname)
Beispiel #27
0
def data_exists(dbname):
    assert e.data_exists("2020 General", f"{jurisdiction}", dbname=dbname)
Beispiel #28
0
def test_data_exists(dbname):
    assert e.data_exists("2020 Primary", "Virginia", dbname=dbname)
Beispiel #29
0
def test_data_exists(dbname):
    assert e.data_exists(election, jurisdiction, dbname=dbname)
Beispiel #30
0
def test_data(dbname):
    assert e.data_exists("2016 General", "North Carolina", dbname=dbname)