Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* add a KMKR (Käibemaksukohuslase, Estonian VAT number) ↵Arthur de Jong2012-02-171-0/+1
| | | | | | module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@135 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (Irish VAT number) moduleArthur de Jong2012-02-171-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@134 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an ANUM (Közösségi adószám, Hungarian VAT ↵Arthur de Jong2012-02-171-0/+1
| | | | | | number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@133 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a DIČ (Daňové identifikační číslo, Czech VAT ↵Arthur de Jong2012-02-171-1/+1
| | | | | | number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@132 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an ALV nro (Arvonlisäveronumero, Finnish VAT ↵Arthur de Jong2012-02-171-1/+1
| | | | | | number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@131 9dea7c4f-944c-4273-ac1a-574ede026edc
* add IČ DPH (Identifikačné číslo pre daň z pridanej ↵Arthur de Jong2012-02-171-0/+1
| | | | | | hodnoty, Slovak VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@130 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a NIF (Número de identificação fiscal, Portuguese ↵Arthur de Jong2012-02-161-1/+2
| | | | | | VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@129 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a UID (Umsatzsteuer-Identifikationsnummer, Austrian ↵Arthur de Jong2012-02-131-0/+1
| | | | | | VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@128 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a Αριθμός Εγγραφής Φ.Π.Α. (Cypriot ↵Arthur de Jong2012-02-131-0/+1
| | | | | | VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@127 9dea7c4f-944c-4273-ac1a-574ede026edc
* fix typo in headerArthur de Jong2012-02-121-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@125 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a Partita IVA (Italian VAT number) moduleArthur de Jong2012-02-121-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@124 9dea7c4f-944c-4273-ac1a-574ede026edc