Cedula (Dominican Republic national identification number).
A cedula is is an 11-digit number issues by the Dominican Republic government to citizens or residents for identification purposes.
>>> validate('00113918205')
'00113918205'
>>> validate('00113918204')
Traceback (most recent call last):
...
InvalidChecksum: ...
>>> validate('0011391820A')
Traceback (most recent call last):
...
InvalidFormat: ...
>>> format('22400022111')
'224-0002211-1'
Traceback (most recent call last):
...
InvalidFormat: ...
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
Reformat the passed number to the standard format.
Checks to see if the number provided is a valid cedula.
Checks to see if the number provided is a valid cedula.