def validate_uncommitted_primary_state_legislative_results():
    results = 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')
    count = results.count()
    assert count == 65, ("There should be only one result per "
        "state legislative district, instead there are {0}".format(count))

#def validate_name_parsing():
    #Check assortment of names
    #Check that Other was skipped
#    pass
Should only have one uncommitted result per legislative district
dataset/ETHPy150Open openelections/openelections-core/openelex/us/md/validate/__init__.py/validate_uncommitted_primary_state_legislative_results