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