Module Import alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad attr Str Assert CompareEq NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assert CompareEq AttributeLoad NameLoad attr Num BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num Expr Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num Expr Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Dict Str Str Str Str Str Str Dict Str Str Num Num Dict Str Str Num Num Dict Str Str Num Num Dict Str Str Num Num Dict Str Str Num Num Dict Str Str Num Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword Str Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword Str Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword ListLoad Str Str Str body Assert AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num Assign NameStore ListLoad TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num Assign NameStore ListLoad TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num TupleLoad Str Str Num Expr Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str attr Assign NameStore Num TryExcept body Assert CompareEq NameLoad NameLoad Print BinOpMod Str NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict Str Str Str Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Assign NameStore Num TryExcept body Assert CompareEq NameLoad NameLoad Print BinOpMod Str TupleLoad NameLoad Str handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore Dict Str Str Str NameLoad Str Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Print BinOpMod Str Call AttributeLoad Str attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Str ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str keyword Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assert CompareEq NameLoad Num BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num BinOpMod Str NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr keyword Str keyword Str attr Assert CompareEq NameLoad Num BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num BinOpMod Str NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr keyword Str keyword Str attr Assert CompareEq NameLoad Num BinOpMod Str NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str keyword Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assert CompareEq NameLoad Num BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num BinOpMod Str NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr keyword Str keyword Str attr Assert CompareEq NameLoad Num BinOpMod Str NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str keyword Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assert CompareEq NameLoad Num BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num BinOpMod Str NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr keyword Str keyword Str attr Assert CompareEq NameLoad Num BinOpMod Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str attr Str For NameStore NameLoad body Assert Call AttributeLoad NameLoad attr Str NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str TryExcept body Assert CompareEq NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Print Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Print Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad attr Assign NameStore Str Assert CompareEq NameLoad Num Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str attr Assign NameStore Str Assert CompareEq NameLoad Num Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str attr Assign NameStore Str Assert CompareEq NameLoad Num Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Num Call AttributeLoad Str attr NameLoad decorator_list
N/A N/A re openelex.models Contest Candidate Office Result election Election2000Primary Election2000General Election2002Primary Election2002General Election2004Primary Election2004General Election2006Primary Election2006General Election2008Primary Election2008Special Election2008General Election2010Primary Election2010General Election2012Primary Election2012General _validate_candidate_votes N/A N/A election_id reporting_level contest_slug candidate_slug expected_votes N/A N/A N/A Sum sub-contest level results and compare them to known totals N/A msg Expected {} votes for contest {} and candidate {}, found {} N/A votes N/A N/A N/A N/A N/A Result objects filter election_id election_id contest_slug contest_slug candidate_slug candidate_slug reporting_level reporting_level sum votes N/A N/A votes expected_votes N/A N/A msg format expected_votes contest_slug candidate_slug votes N/A _validate_many_candidate_votes N/A N/A election_id reporting_level candidates N/A N/A N/A 
    Sum sub-contest level results and compare them to known totals for 
    multiple contests and candidates.

    Arguments:

    election_id - Election ID of the election of interest.
    reporting_level - Reporting level to use to aggregate results.
    candidates - Tuple of contests slug, candidate slug and expected votes.

     N/A candidate_info candidates N/A N/A N/A contest candidate expected candidate_info N/A N/A _validate_candidate_votes election_id reporting_level contest candidate expected N/A validate_contests_2000_primary N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2000 primary N/A N/A N/A N/A Election2000Primary validate_contests N/A validate_contests_2000_general N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2000 general election N/A N/A N/A N/A Election2000General validate_contests N/A validate_contests_2002_primary N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2002 primary N/A N/A N/A N/A Election2002Primary validate_contests N/A validate_contests_2002_general N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2002 general N/A N/A N/A N/A Election2002General validate_contests N/A validate_contests_2004_primary N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2004 primary N/A N/A N/A N/A Election2004Primary validate_contests N/A validate_contests_2004_general N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2004 general election N/A N/A N/A N/A Election2004General validate_contests N/A validate_contests_2006_primary N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2006 primary N/A N/A N/A N/A Election2006Primary validate_contests N/A validate_contests_2006_general N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2006 general election N/A N/A N/A N/A Election2006General validate_contests N/A validate_contests_2008_primary N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2008 primary N/A N/A N/A N/A Election2008Primary validate_contests N/A validate_contests_2008_special N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2008 special general election for the 4th Congressional District N/A N/A N/A N/A Election2008Special validate_contests N/A validate_contests_2008_general N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2008 general election N/A N/A N/A N/A Election2008General validate_contests N/A validate_contests_2010_primary N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2010 primary N/A N/A N/A N/A Election2010Primary validate_contests N/A validate_contests_2010_general N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2010 general election N/A N/A N/A N/A Election2010General validate_contests N/A validate_contests_2012_primary N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2012 primary N/A N/A N/A N/A Election2012Primary validate_contests N/A validate_contests_2012_general N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2012 general election N/A N/A N/A N/A Election2012General validate_contests N/A validate_candidate_count_2000_primary N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2000 primary N/A N/A N/A N/A Election2000Primary validate_candidate_count N/A validate_candidate_count_2000_general N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2000 general election N/A N/A N/A N/A Election2000General validate_candidate_count N/A validate_candidate_count_2002_primary N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2002 primary N/A N/A N/A N/A Election2002Primary validate_candidate_count N/A validate_candidate_count_2002_general N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2002 general election N/A N/A N/A N/A Election2002General validate_candidate_count N/A validate_candidate_count_2004_primary N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2004 primary N/A N/A N/A N/A Election2004Primary validate_candidate_count N/A validate_candidate_count_2004_general N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2004 general election N/A N/A N/A N/A Election2004General validate_candidate_count N/A validate_candidate_count_2006_primary N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2006 primary N/A N/A N/A N/A Election2006Primary validate_candidate_count N/A validate_candidate_count_2006_general N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2006 general election N/A N/A N/A N/A Election2006General validate_candidate_count N/A validate_candidate_count_2008_primary N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2008 primary N/A N/A N/A N/A Election2008Primary validate_candidate_count N/A validate_candidate_count_2008_special N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2008 special general election for the 4th Congressional District N/A N/A N/A N/A Election2008Special validate_candidate_count N/A validate_candidate_count_2008_general N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2008 general election N/A N/A N/A N/A Election2008General validate_candidate_count N/A validate_candidate_count_2010_primary N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2010 primary N/A N/A N/A N/A Election2010Primary validate_candidate_count N/A validate_candidate_count_2010_general N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2010 general election N/A N/A N/A N/A Election2010General validate_candidate_count N/A validate_candidate_count_2012_primary N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2012 primary N/A N/A N/A N/A Election2012Primary validate_candidate_count N/A validate_candidate_count_2012_general N/A N/A N/A N/A N/A Check that there are the correct number of Candidate records for the 2012 general election N/A N/A N/A N/A Election2012General validate_candidate_count N/A validate_result_count_2000_primary N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2000 primary N/A N/A N/A N/A Election2000Primary validate_result_count N/A validate_2000_primary_congress_county_results N/A N/A N/A N/A N/A Confirm that county level results are created for congressional races in the 2000 primary N/A results N/A N/A N/A Result objects filter state MD reporting_level county election_id md-2000-03-07-primary contest_slug__startswith us-house-of-representatives N/A district_1_results_d N/A N/A results filter contest_slug us-house-of-representatives-1-d N/A count N/A N/A district_1_results_d count N/A N/A count 44 N/A There should be 44 results for District 1, insteadthere are %d count N/A result N/A N/A results get candidate_slug bennett-bozman jurisdiction Worcester N/A N/A N/A result votes 3429 N/A Bennett Bozman should have 3429 votes in Worcester County, instead has %d N/A result votes N/A district_8_results_r N/A N/A results filter contest_slug us-house-of-representatives-8-r N/A count N/A N/A district_8_results_r count N/A N/A count 1 N/A There should be 1 result for District 8, instead there are %d count N/A result N/A N/A results get candidate_slug constance-a-morella jurisdiction Montgomery N/A N/A N/A result votes 35472 N/A Constance A. Morella should have 35472 votes in Montgomery county.  Instead has %d N/A result votes N/A validate_results_2000_primary N/A N/A N/A N/A N/A Sum some county-level results for 2000 primary and compare with known totals N/A election_id md-2000-03-07-primary N/A known_results N/A N/A president-d al-gore 341630 N/A president-r orrin-hatch 588 N/A us-house-of-representatives-1-d bennett-bozman 14842 N/A us-house-of-representatives-1-r wayne-t-gilchrest 49232 N/A N/A _validate_many_candidate_votes election_id county known_results N/A validate_result_count_2000_general N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2000 general election N/A reporting_levels N/A county state_legislative N/A N/A N/A N/A Election2000General validate_result_count reporting_levels N/A validate_result_count_2002_primary N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2002 primary N/A N/A N/A N/A Election2002Primary validate_result_count N/A validate_result_count_2002_general N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2002 general N/A N/A N/A N/A Election2002General validate_result_count N/A validate_results_2002_general N/A N/A N/A N/A N/A Sum some county-level results for 2002 general election and compare with known totals N/A election_id md-2002-11-05-general N/A known_results N/A N/A governor robert-l-ehrlich 879592 N/A governor james-t-lynch 61 N/A comptroller william-donald-schaefer 1125279 N/A comptroller other-writeins 3333 N/A house-of-delegates-1a george-c-edwards 10303 N/A N/A _validate_many_candidate_votes election_id county known_results N/A validate_result_count_2004_primary N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2004 primary N/A reporting_levels N/A county state_legislative N/A N/A N/A N/A Election2004Primary validate_result_count reporting_levels N/A validate_result_count_2004_general N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2004 general election N/A reporting_levels N/A county state_legislative N/A N/A N/A N/A Election2004General validate_result_count reporting_levels N/A validate_result_count_2006_primary N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2006 primary N/A reporting_levels N/A county state_legislative N/A N/A N/A N/A Election2006Primary validate_result_count reporting_levels N/A validate_result_count_2006_general N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2006 general election N/A reporting_levels N/A county state_legislative N/A N/A N/A N/A Election2006General validate_result_count reporting_levels N/A validate_result_count_2008_primary N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2008 primary N/A reporting_levels N/A county state_legislative N/A N/A N/A N/A Election2008Primary validate_result_count reporting_levels N/A validate_result_count_2008_special N/A N/A N/A N/A N/A Check that there are the correct number of Contest records for the 2008 special general election for the 4th Congressional District N/A N/A N/A N/A Election2008Special validate_result_count N/A validate_results_2008_special N/A N/A N/A N/A N/A candidates N/A donna-edwards peter-james thibeaux-lincecum adrian-petrus steve-schulin other-writeins N/A votes_montgomery votes_prince_georges 6733 9748 N/A votes_montgomery votes_prince_georges 2993 645 N/A votes_montgomery votes_prince_georges 148 68 N/A votes_montgomery votes_prince_georges 0 1 N/A votes_montgomery votes_prince_georges 13 2 N/A votes_montgomery votes_prince_georges 60 51 N/A N/A candidate props N/A N/A candidates items N/A N/A result N/A N/A N/A Result objects get election_id md-2008-06-17-special-general candidate_slug candidate jurisdiction Montgomery County N/A N/A N/A result votes N/A props N/A votes_montgomery N/A result N/A N/A N/A Result objects get election_id md-2008-06-17-special-general candidate_slug candidate jurisdiction Prince George's County N/A N/A N/A result votes N/A props N/A votes_prince_georges N/A result N/A N/A N/A Result objects filter election_id md-2008-06-17-special-general candidate_slug__in N/A adrian_petrus steve-shulin other_writeins N/A N/A N/A result write_in N/A validate_result_count_2008_general N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2008 general election N/A reporting_levels N/A county state_legislative N/A N/A N/A N/A Election2008General validate_result_count reporting_levels N/A validate_results_2008_general N/A N/A N/A N/A N/A 
    Sum some county-level results for 2008 general election and compare with known totals

    Comparison values come from
    http://www.elections.state.md.us/elections/2008/results/general/index.html
     N/A election_id md-2008-11-04-general N/A known_county_results N/A N/A president barack-obama 1629467 N/A president john-mccain 959862 N/A us-house-of-representatives-1 frank-m-kratovil-jr 177065 N/A us-house-of-representatives-1 richard-james-davis 8873 N/A known_precinct_results N/A N/A president barack-obama 1470995 N/A president john-mccain 882106 N/A us-house-of-representatives-1 frank-m-kratovil-jr 160915 N/A us-house-of-representatives-1 richard-james-davis 7924 N/A N/A _validate_many_candidate_votes election_id county known_county_results N/A N/A _validate_many_candidate_votes election_id precinct known_precinct_results N/A validate_result_count_2010_primary N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2010 primary N/A reporting_levels N/A county state_legislative N/A N/A N/A N/A Election2010Primary validate_result_count reporting_levels N/A validate_result_count_2010_general N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2010 general election N/A reporting_levels N/A county state_legislative N/A N/A N/A N/A Election2010General validate_result_count reporting_levels N/A validate_results_2010_general N/A N/A N/A N/A N/A 
    Sum some county-level results for 2010 general election and compare with known totals
    
    Comparison results from
    http://www.elections.state.md.us/elections/2010/results/General/index.html
     N/A election_id md-2010-11-02-general N/A known_county_results N/A N/A governor martin-omalley 1044961 N/A governor ralph-jaffe 319 N/A comptroller peter-franchot 1087836 N/A comptroller william-henry-campbell 691461 N/A attorney-general douglas-f-gansler 1349962 N/A us-senate barbara-a-mikulski 1140531 N/A us-senate richard-shawver 14746 N/A us-house-of-representatives-1 andy-harris 155118 N/A us-house-of-representatives-1 richard-james-davis 10876 N/A state-senate-47 victor-ramirez 15548 N/A house-of-delegates-1a wendell-r-beitzel 8866 N/A house-of-delegates-1a james-r-smokey-stanton 3333 N/A known_precinct_results N/A N/A governor martin-omalley 832683 N/A governor ralph-jaffe 270 N/A comptroller peter-franchot 868388 N/A comptroller william-henry-campbell 586269 N/A attorney-general douglas-f-gansler 1097931 N/A us-senate barbara-a-mikulski 912899 N/A us-senate richard-shawver 12605 N/A us-house-of-representatives-1 andy-harris 125773 N/A us-house-of-representatives-1 richard-james-davis 8941 N/A state-senate-47 victor-ramirez 13131 N/A house-of-delegates-1a wendell-r-beitzel 7781 N/A house-of-delegates-1a james-r-smokey-stanton 2740 N/A N/A _validate_many_candidate_votes election_id county known_county_results N/A N/A _validate_many_candidate_votes election_id precinct known_precinct_results N/A validate_result_count_2012_primary N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2012 primary N/A reporting_levels N/A county state_legislative N/A N/A N/A N/A Election2012Primary validate_result_count reporting_levels N/A validate_result_count_2012_general N/A N/A N/A N/A N/A Should have results for every candidate and contest in 2012 general election N/A reporting_levels N/A county state_legislative N/A N/A N/A N/A Election2012General validate_result_count reporting_levels N/A validate_unique_prez_2012_general N/A N/A N/A N/A N/A Should only be a single contest for 2012 prez general N/A count N/A N/A N/A N/A N/A Contest objects filter election_id md-2012-11-06-general slug president count N/A expected 1 N/A N/A N/A N/A count expected N/A N/A PASS: %s general prez contest found for 2012 count N/A N/A N/A AssertionError N/A N/A N/A AssertionError N/A expected 2012 general prez contest count (%s) did not match actual count (%s) N/A expected count N/A validate_obama_candidacies_2012 N/A N/A N/A N/A N/A Should only be two Obama candidacies in 2012 (primary and general) N/A kwargs N/A election_id__startswith slug md-2012 barack-obama N/A count N/A N/A N/A N/A N/A Candidate objects filter kwargs count N/A expected 2 N/A N/A N/A N/A count expected N/A N/A PASS: %s obama candidacies found for %s N/A count 2012 N/A N/A N/A AssertionError N/A N/A N/A AssertionError N/A expected obama 2012 candidacies (%s) did not match actual count(%s) N/A expected count N/A validate_obama_primary_candidacy_2012 N/A N/A N/A N/A N/A Should only be one Obama primary candidacy for 2012 N/A elec_id md-2012-04-03-primary N/A kwargs N/A election_id contest_slug slug elec_id president-d barack-obama N/A N/A N/A cand N/A N/A N/A Candidate objects get kwargs N/A N/A PASS: 1 obama primary candidacy found for 2012: %s N/A N/A - join N/A cand key N/A N/A N/A N/A Candidate DoesNotExist N/A N/A N/A N/A Candidate DoesNotExist zero obama primary candidacies found for 2012 N/A N/A N/A Candidate MultipleObjectsReturned N/A e N/A N/A N/A N/A Candidate MultipleObjectsReturned N/A multiple obama primary candidacies found for 2012: %s e N/A validate_aggregate_congressional_district_results N/A N/A N/A N/A N/A Validate that results have been correctly aggregated from congressional districts split by county N/A election_id md-2000-03-07-primary N/A results N/A N/A N/A Result objects filter election_id election_id contest_slug president-d reporting_level congressional_district N/A count N/A len N/A N/A results distinct jurisdiction N/A N/A count 8 N/A There should be results for 8 congressional districts.  Instead there are results for %d. count N/A count N/A N/A results count N/A N/A count 32 N/A There should be 32 results.  Instead there are %d count N/A votes N/A N/A N/A results get candidate_slug al-gore jurisdiction 1 votes N/A N/A votes 32426 N/A Al Gore should have 32426 votes in District 1. Instead there are %d votes N/A results N/A N/A N/A Result objects filter election_id election_id contest_slug us-house-of-representatives-1-r reporting_level congressional_district N/A count N/A N/A results count N/A N/A count 1 N/A There should be 1 result.  Instead there are %d count N/A votes N/A N/A N/A results get candidate_slug wayne-t-gilchrest jurisdiction 1 votes N/A N/A votes 49232 N/A Wayne T. Gilchrest should have 49232 votes in District 1. Instead he has %d. votes N/A election_id md-2008-02-12-primary N/A results N/A N/A N/A Result objects filter election_id election_id contest_slug president-d reporting_level congressional_district N/A count N/A len N/A N/A results distinct jurisdiction N/A N/A count 8 N/A There should be results for 8 congressional districts.  Instead there are results for %d. count N/A count N/A N/A results count N/A N/A count 72 N/A There should be 72 results.  Instead there are %d count N/A votes N/A N/A N/A results get candidate_slug hillary-clinton jurisdiction 6 votes N/A N/A votes 34322 N/A Hillary Clinton should have 34322 votes in District 6, instead she has %d votes N/A election_id md-2012-04-03-primary N/A results N/A N/A N/A Result objects filter election_id election_id contest_slug president-d reporting_level congressional_district N/A count N/A len N/A N/A results distinct jurisdiction N/A N/A count 8 N/A There should be results for 8 congressional districts.  Instead there are results for %d. count N/A count N/A N/A results count N/A N/A count 16 N/A There should be 16 results.  Instead there are %d count N/A votes N/A N/A N/A results get candidate_slug barack-obama jurisdiction 1 votes N/A N/A votes 20343 N/A Barack Obama should have 20343 votes in District 1, instead he has %d votes N/A validate_precinct_names_normalized N/A N/A N/A N/A N/A Precinct jurisdiction names should be in the format 'NN-NNN' N/A precincts N/A N/A N/A N/A N/A Result objects filter state MD reporting_level precinct distinct jurisdiction N/A precinct precincts N/A N/A N/A N/A re match \d+-0\d\d precinct N/A Precinct %s doesn't match normalized format. precinct N/A validate_unique_contests N/A N/A N/A N/A N/A Should have a unique set of contests for all elections N/A election_ids N/A list N/A N/A N/A Contest objects distinct election_id N/A elec_id election_ids N/A N/A contests N/A N/A N/A Contest objects filter election_id elec_id N/A count N/A N/A contests count N/A expected N/A len N/A list N/A N/A contests distinct slug N/A N/A N/A N/A expected count N/A N/A N/A AssertionError N/A N/A N/A AssertionError N/A %s contests expected for elec_id '%s', but %s found N/A expected elec_id count N/A PASS: unique contests counts found for all elections N/A validate_unique_candidates N/A N/A N/A N/A N/A Should have a unique set of candidates for all contests N/A msg %s candidates expected for election {} and contest {}, but {} found N/A contest N/A N/A N/A Contest objects all N/A N/A election_id N/A contest election_id N/A candidates N/A N/A N/A Candidate objects filter election_id election_id contest_slug N/A contest slug N/A expected N/A len N/A N/A candidates distinct slug N/A count N/A N/A candidates count N/A N/A count expected N/A N/A msg format expected election_id N/A contest slug count N/A PASS: unique candidates found for all elections N/A validate_no_baltimore_city_comptroller N/A N/A N/A N/A N/A Should not have contest, candidates or results for a Baltimore City comptroller N/A election_id md-2004-11-02-general N/A office N/A N/A N/A Office objects get state MD name Comptroller N/A count N/A N/A N/A N/A N/A Contest objects filter election_id election_id office office count N/A msg There should be no comptroller contest for election {0} N/A N/A count 0 N/A N/A msg format election_id N/A count N/A N/A N/A N/A N/A Candidate objects filter election_id election_id contest_slug comptroller count N/A msg There should be no comptroller candidates for election {0} N/A N/A count 0 N/A N/A msg format election_id N/A count N/A N/A N/A N/A N/A Result objects filter election_id election_id contest_slug comptroller count N/A msg There should be no comptroller results for election {0} N/A N/A count 0 N/A N/A msg format election_id N/A validate_uncommitted_primary_state_legislative_results N/A N/A N/A N/A N/A Should only have one uncommitted result per legislative district N/A results N/A N/A N/A Result objects filter election_id md-2008-02-12-primary reporting_level state_legislative contest_slug president-d candidate_slug uncommitted-to-any-presidential-candidate N/A count N/A N/A results count N/A N/A count 65 N/A N/A There should be only one result per state legislative district, instead there are {0} format count N/A