Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Implement validate() for ISANArthur de Jong2013-06-081-13/+25
|
* Implement validate() for IMEI numbersArthur de Jong2013-06-081-11/+11
|
* Implement validate() for ISO 7064 algorithmsArthur de Jong2013-06-081-15/+17
|
* Implement validate() for the Verhoeff checksumArthur de Jong2013-06-081-13/+17
|
* Implement validate() for the Luhn algorithmsArthur de Jong2013-06-081-13/+15
|
* Implement validate() for ISBNArthur de Jong2013-06-081-11/+23
|
* Implement validate() for EANArthur de Jong2013-06-081-0/+43
|
* The robustness test were moved to the general testsArthur de Jong2013-06-071-16/+0
|
* re-add Python3 supportArthur de Jong2012-02-263-3/+9
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@174 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (European Union VAT number) moduleArthur de Jong2012-02-191-0/+656
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@155 9dea7c4f-944c-4273-ac1a-574ede026edc
* use introspection to find number modules and test themArthur de Jong2012-02-191-39/+6
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@150 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (Идентификационен номер ↵Arthur de Jong2012-02-182-1/+50
| | | | | | по ДДС, Bulgarian VAT numbers) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@149 9dea7c4f-944c-4273-ac1a-574ede026edc