Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* add a PNF (ЛНЧ, Личен номер на ↵Arthur de Jong2012-02-181-1/+1
| | | | | | чужденец, Bulgarian personal number of a foreigner) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@148 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an EGN (ЕГН, Единен граждански ↵Arthur de Jong2012-02-181-0/+1
| | | | | | номер, Bulgarian personal identity codes) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@147 9dea7c4f-944c-4273-ac1a-574ede026edc
* explicitly test for FalseArthur de Jong2012-02-181-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@146 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (United Kingdom (and Isle of Man) VAT ↵Arthur de Jong2012-02-182-0/+54
| | | | | | registration number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@144 9dea7c4f-944c-4273-ac1a-574ede026edc
* fix typoArthur de Jong2012-02-181-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@143 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (Moms, Mervärdesskatt, Swedish VAT number) moduleArthur de Jong2012-02-181-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@142 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a ID za DDV (Davčna številka, Slovenian VAT ↵Arthur de Jong2012-02-181-0/+1
| | | | | | number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@141 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a NIP (Numer Identyfikacji Podatkowej, Polish VAT ↵Arthur de Jong2012-02-181-0/+1
| | | | | | number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@140 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (Maltese VAT number) moduleArthur de Jong2012-02-181-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@139 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a TVA (Numéro d'identification à la taxe sur la ↵Arthur de Jong2012-02-171-2/+2
| | | | | | valeur ajoutée, French VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@137 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a PVM (Pridėtinės vertės mokestis mokėtojo ↵Arthur de Jong2012-02-171-0/+1
| | | | | | kodas, Lithuanian VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@136 9dea7c4f-944c-4273-ac1a-574ede026edc