def ipv6(value):
    try:
        socket.inet_pton(socket.AF_INET6, value)
        return value
    except socket.error:
        raise ValueError('{0} is not a valid ipv4 address'.format(value))
Check that there are the correct number of Contest records for the 2012 general election
dataset/ETHPy150Open noirbizarre/flask-restplus/flask_restplus/inputs.py/ipv6--crossover with--dataset/ETHPy150Open openelections/openelections-core/openelex/us/md/validate/__init__.py/validate_contests_2012_general