def validate_precinct_names_normalized():
    precincts = Result.objects.filter(state='MD', reporting_level='precinct').distinct('jurisdiction')
    for precinct in precincts:
        assert re.match(r'\d+-0\d\d', precinct), ("Precinct %s doesn't match "
            "normalized format." % precinct)
Bind a callback to be called before event is run.
dataset/ETHPy150Open openelections/openelections-core/openelex/us/md/validate/__init__.py/validate_precinct_names_normalized--crossover with--dataset/ETHPy150Open richrd/suplemon/suplemon/suplemon_module.py/Module.bind_event