Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_robustness.doctest
Commit message (Collapse)AuthorAgeFilesLines
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-291-2/+2
| | | | | | | | | | | The problem with the latter is that it will also accept all kinds of unicode digits that are not the ASCII 0-9 digits causing all kinds of problems in check digit calculations. Some of these unicode characters are also considered digits by int() but some are not (such as the SUPERSCRIPT TWO unicode character). Closes https://github.com/arthurdejong/python-stdnum/issues/96
* Add unicode robustness testsArthur de Jong2017-04-011-1/+3
| | | | This tests a few unicode strings and fixes a bug in the MEID module.
* Add European NACE classificationArthur de Jong2017-03-261-2/+2
| | | | | This number is used to classify business. Validation is done based on a downloaded registry.
* Small improvements to testsArthur de Jong2016-05-281-3/+2
| | | | | This includes a formatting fix and removes an unused variable from a test.
* re-add Python3 supportArthur de Jong2012-02-261-1/+2
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@174 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-181-1/+1
| | | | | | по ДДС, 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-181-0/+1
| | | | | | registration number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@144 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
* add a CF (Cod de înregistrare în scopuri de TVA, ↵Arthur de Jong2012-02-121-1/+1
| | | | | | Romanian VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@123 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a CNP (Cod Numeric Personal, Romanian Numerical ↵Arthur de Jong2012-02-121-0/+1
| | | | | | Personal Code) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@122 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a TVA (Numéro d'identification à la taxe sur la ↵Arthur de Jong2012-02-111-0/+1
| | | | | | valeur ajoutée, Luxembourgian VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@120 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a CVR (Momsregistreringsnummer, Danish VAT number) ↵Arthur de Jong2012-02-111-0/+1
| | | | | | module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@119 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a PVN (Pievienotās vērtības nodokļa, Latvian VAT ↵Arthur de Jong2012-02-111-0/+1
| | | | | | number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@116 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a NIF (Número de Identificación Fiscal, Spanish ↵Arthur de Jong2012-02-111-1/+1
| | | | | | VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@115 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a CIF (Certificado de Identificación Fiscal, ↵Arthur de Jong2012-02-111-1/+1
| | | | | | Spanish tax identification number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@114 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a NIE (Número de Identificación de Extranjeros, ↵Arthur de Jong2012-02-101-1/+1
| | | | | | Spanish identification number for foreigners) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@111 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a DNI (Documento nacional de identidad, Spanish ↵Arthur de Jong2012-02-101-0/+1
| | | | | | personal identity codes) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@110 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a BTW, TVA, NWSt (Belgian VAT number) moduleArthur de Jong2012-02-101-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@109 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an Ust ID Nr. (Umsatzsteur Identifikationnummer, the ↵Arthur de Jong2012-02-101-0/+1
| | | | | | German VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@104 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a FPA, ΦΠΑ (Foros Prostithemenis Aksias, the ↵Arthur de Jong2012-02-101-0/+1
| | | | | | Greek VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@103 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a SIREN (Système d'Identification du Répertoire ↵Arthur de Jong2012-02-051-0/+1
| | | | | | des Entreprises, a French company identification number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@102 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a RČ (Rodné číslo, the Czech birth numbers) moduleArthur de Jong2012-02-051-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@101 9dea7c4f-944c-4273-ac1a-574ede026edc
* some extra rubustness checksArthur de Jong2012-02-041-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@99 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a BTW (the Dutch VAT number) moduleArthur de Jong2012-02-021-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@96 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an onderwijsnummer (Dutch school number) moduleArthur de Jong2012-02-021-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@95 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a HETU (Finnish personal identity code) module as ↵Arthur de Jong2011-11-071-0/+1
| | | | | | provided by Jussi Judin (#5) git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@92 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an IMSI (International Mobile Subscriber Identity) ↵Arthur de Jong2011-09-231-1/+1
| | | | | | module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@83 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an EAN (International Article Number) moduleArthur de Jong2011-06-201-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@70 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an SSN (U.S. Social Security Number) moduleArthur de Jong2011-02-061-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@63 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an ISIL (International Standard Identifier for ↵Arthur de Jong2011-02-051-1/+1
| | | | | | Libraries and Related Organizations) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@61 9dea7c4f-944c-4273-ac1a-574ede026edc