Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Implement Damm algorithmArthur de Jong2016-07-261-0/+93
| | | This is a generic check digit algorithm.
* Add extra tests for SIREN and SIRETArthur de Jong2016-07-252-0/+132
| | | | | | | | This adds tests for a few numbers that have been found online and allows the dot as a seprator because those numbers were found. It also ensures that the SIREN validation is also called for SIRET and adds a SIRET formatting function.
* Add more ISIL testsArthur de Jong2016-05-291-0/+404
| | | | | This moves a few of the tests from the module to a dedicated test file and adds tests for a number of ISIL numbers found online.
* Fix bug in Swiss SSN validationArthur de Jong2016-05-281-0/+33
| | | | | | | The validation was delegated to the EAN module but the number is supposed to be an EAN-13 only and and EAN-8 was also accepted. This also reformats the docstring.
* Fix bug in Irish VAT number validationArthur de Jong2016-05-281-0/+48
| | | | | | | | | | | The last digits of the number that should be letters were not tested to be letters which could result in ValueError being raised for certain validations. This also clarifies the documentation and adds a convert() function to convert numbers from the old format (where the second character would be a letter or symbol) to the new format (7 digits followed by 1 or 2 letters).
* Small improvements to testsArthur de Jong2016-05-281-3/+2
| | | | | This includes a formatting fix and removes an unused variable from a test.
* Add Turkish personal identification numberArthur de Jong2016-04-091-0/+234
|
* Document accuracy of RFC check digit testArthur de Jong2016-04-011-6/+3
| | | | | | | | There is an online service that allows validating RFC numbers. It seems there are a lot of numbers that do not match the check digit algorithm which confirms disabling the check digit test by default is a good idea. Also see https://github.com/arthurdejong/python-stdnum/issues/32
* Fix for when ISO 6346 checksum is 10Ronald Paloschi2015-10-161-0/+2
| | | | | | | Bug fix for when the checksum is 10, it was compared to 0 and failed. New doctest exposing the bug that passes after the fix is applied. See: https://github.com/arthurdejong/python-stdnum/pull/30
* Add German WertpapierkennnummerArthur de Jong2015-10-111-0/+233
| | | | | The format itself is pretty simple (no check digit) but this module is more for completeness sake.
* Add SEDOL numberArthur de Jong2015-10-101-0/+255
|
* Move numdb test fileArthur de Jong2015-10-101-0/+8
| | | | This places the test database file in the tests directory.
* Fix handling of strip_check_digits in ISANArthur de Jong2015-10-101-0/+12
| | | | | | This fixes the compact() function to honor the strip_check_digits argument and does not validate the check digits if they are passed to validate together with strip_check_digits.
* Add international securities id (ISIN)Arthur de Jong2015-10-101-0/+343
| | | | | | This adds support for handling ISINs (International Securities Identification Number). The can contain a CUSIP but performing this additional validation is currently not performed.
* Add CUSIP numberArthur de Jong2015-10-091-0/+249
|
* Add Swiss UID and VAT numbersArthur de Jong2015-10-082-0/+251
| | | | | | The Swiss VAT number (MWST, TVA, IVA, TPV) is the UID (Unternehmens-Identifikationsnummer) followed by one of the VAT abbreviations.
* Add Mexican RFC numberArthur de Jong2015-10-051-0/+531
| | | | | | | | | | This adds support for the Mexican tax number RFC (Registro Federal de Contribuyentes). This module includes a number of checks on the number but the validation of the last check digit is disabled by default because a large number of numbers were found that were otherwise valid but had an invalid check digit.
* Update Colombian NIT checksArthur de Jong2015-10-051-0/+298
| | | | | | | | | This adds a number of tests for numbers found online. The length check has also been revisited because both shorter numbers and longer number have been found. This also updates the format() function to handle arbitrary length numbers.
* Add more numbers found onlineArthur de Jong2015-10-051-8/+51
|
* Add Polish REGON numberDariusz Choruzy2015-09-271-0/+104
|
* Add Russioan ИНН (INN) tax IDArthur de Jong2015-08-161-0/+59
| | | | | | | This adds a basic implementation of the Russian Идентификационный номер налогоплательщика (tax identification number). This currently only checks the format, length and check digits but not whether each of the parts of the number are valid (e.g. valid region specified).
* Add Brazillian CNPJ business identifierArthur de Jong2015-08-161-0/+60
| | | | | Add module for Cadastro Nacional da Pessoa Jurídica, the Brazillian company identifier.
* Update IBAN testsArthur de Jong2015-08-161-69/+86
| | | | | | This updates the iban.dat file from the IBAN registry, includes a fix for handling spaces in the BBAN and adds some more IBAN examples from the IBAN registry.
* Add validation of Estonian personal IDTomas Karasek2015-08-161-0/+125
|
* Fix copyright headerArthur de Jong2015-04-271-1/+1
|
* Add extra tests for the stdnum.ec.ruc moduleArthur de Jong2015-04-271-1/+185
| | | | These numbers were found in various online sources.
* Add Argentinian CUIT (VAT) numberArthur de Jong2015-04-231-0/+236
| | | | Based partially on the implementation in the vatnumber module.
* Add Chilean national tax number (RUT)Arthur de Jong2015-04-231-0/+235
| | | | Based on the implementation in the vatnumber module.
* Add Albanian NIPT (VAT) numberArthur de Jong2015-04-231-0/+178
| | | | | | | Partially based on the implementation in the vatnumber module. Some valid numbers appear to start with an L so those are allowed as well.
* Add Dominican Republic Cedula numberArthur de Jong2015-04-221-0/+143
| | | | | | | | | The Cedule is a Dominican Republic national identification number for persons. The number uses the Luhn checksum but apparently there are a lof of valid numbers in use that do not match the checksum. For this a whitelist is used.
* Add Dominican Republic RNC numberArthur de Jong2015-04-221-0/+163
| | | | | The RNC (Registro Nacional del Contribuyente) is the Dominican Republic taxpayer registration number for companies.
* Add more stdnum.no.mva testsArthur de Jong2015-04-221-0/+46
|
* Add more tests for KennitalaArthur de Jong2015-04-191-0/+48
|
* Fix for invalidating MEIDs with invalid decimal bit lengthMatt McDonald2014-11-011-0/+14
| | | | See: http://arthurdejong.org/trac/python-stdnum/ticket/10
* Validate parts of numbersArthur de Jong2014-10-172-0/+34
| | | | | This raises exceptions when the provice or establishment number part of the number contains invalid values.
* Use dedicated doctestsArthur de Jong2014-10-172-0/+195
| | | | | | | This moves a number of the existing test cases to dedicated doctest files and extend the tests with more numbers and corner cases. This also fixes a few docstrings.
* Add Chinese Resident Identity Card NumberArthur de Jong2014-10-061-0/+90
|\
| * Support the Resident Identity Card Number of People's ↵Jiangge Zhang2014-10-061-0/+90
| | | | | | | | Republic China
* | Update NRIC testsArthur de Jong2014-10-051-6/+6
|/
* Add support for ISO6346Sharoon Thomas2014-03-181-0/+59
| | | | | | Add validation and creation of check digit for ISO6346 codes. See: https://github.com/arthurdejong/python-stdnum/pull/9
* Add support for 2013 extension of Irish PPS NumbersArthur de Jong2014-02-171-0/+2
| | | | | References: - https://www.welfare.ie/en/Pages/PPSN.aspx - http://www.citizensinformation.ie/en/social_welfare/irish_social_welfare_system/personal_public_service_number.html
* Add an Italian Codice Fiscale moduleArthur de Jong2014-02-021-0/+129
| | | | | | | | | | | | | | | | | | This module validates 16 digit Italian tax codes for individuals. https://en.wikipedia.org/wiki/Italian_fiscal_code_card It is based on the pycodicefiscale module that can be found here: https://github.com/baxeico/pycodicefiscale Functions have been renamed to follow the stdnum naming scheme: isvalid() -> is_valid(), control_code -> calc_check_digit(), get_birthday() -> get_birth_date(), get_sex() -> get_gender(). The build() function for generating tax codes (based on name, birth place and date) has been left out because this number cannot be uniquely constructed with this information alone (numbers are issued by the Italian tax office with a mechanism handle duplicates). Addresses trac ticket #9.
* Add some new VAT numbers for GBCédric Krier2013-12-301-0/+30
| | | | | | | Add support for restarting from November 2009 using 9755. Add support for EU format of health authorities See: https://github.com/arthurdejong/python-stdnum/pull/4
* Add a Malaysian NRIC No. moduleArthur de Jong2013-06-081-0/+126
| | | | | NRIC No. (National Registration Identity Card Number) is the unique identifier for issued to Malaysian citizens and permanent residents.
* Implement validate() for European VAT numbersArthur de Jong2013-06-081-2/+175
|
* Implement validate() for United Kingdom numbersArthur de Jong2013-06-081-13/+39
|
* Implement validate() for Finnish numbersArthur de Jong2013-06-081-22/+38
|
* Implement validate() for Bulgarian numbersArthur de Jong2013-06-081-17/+19
|
* Implement validate() for MEIDArthur de Jong2013-06-081-27/+37
|
* Implement validate() for ISMNArthur de Jong2013-06-081-19/+37
|