コード例 #1
0
def test_vote_type_counts_consistent(dbname):
    assert e.check_totals_match_vote_types(election,
                                           jurisdiction,
                                           dbname=dbname)
コード例 #2
0
def test_nc_totals_match_vote_type_16(dbname):
    assert (e.check_totals_match_vote_types("2016 General",
                                            "North Carolina",
                                            dbname=dbname) == True)
コード例 #3
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)
コード例 #4
0
def test_ga_totals_match_vote_type_20(dbname):
    assert (e.check_totals_match_vote_types(election,
                                            jurisdiction,
                                            dbname=dbname) == True)
コード例 #5
0
def test_ga_totals_match_vote_type_18(dbname):
    assert (e.check_totals_match_vote_types("2018 General",
                                            "Georgia",
                                            dbname=dbname) == True)
コード例 #6
0
def test_oh_totals_match_vote_type_16(dbname):
    assert (e.check_totals_match_vote_types("2016 General",
                                            "Ohio",
                                            dbname=dbname) == True)
コード例 #7
0
def test_ar_totals_match_vote_type_18(dbname):
    assert (e.check_totals_match_vote_types("2018 General",
                                            "Arkansas",
                                            dbname=dbname) == True)
コード例 #8
0
def test_ar_totals_match_vote_type_20(dbname):
    assert (
        e.check_totals_match_vote_types("2020 Primary", "Arkansas", dbname=dbname)
        == True
    )