Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add an extra test for Belgian IBANsArthur de Jong2018-04-121-0/+11
| | | | | A Belgian IBAN should not end with 00. This also fixes a docstring and comment in the IBAN module.
* Correctly split IMSI with multi-length MNCArthur de Jong2018-04-101-0/+44
| | | | | | | | | | | | Ensures that imsi.split() will correctly split the IMSI into an MCC, MNC and MSIN even if not all MNCs within a single MCC have the same length. This has the downside of not being able to guess the MNC length in some cases. This also omits empty information from the data file and updates the data file from Wikipedia. Closes https://github.com/arthurdejong/python-stdnum/issues/68
* Add Financial Instrument Global IdentifierArthur de Jong2018-03-251-0/+161
|
* Add German company registry numbersArthur de Jong2018-03-231-0/+207
| | | | | Based on the implementation provided by Markus Törnqvist and Lari Haataja of Holvi Payment Services.
* Add Austrian AbgabenkontonummerArthur de Jong2018-03-181-0/+195
| | | | | | Based on the implementation provided by Mohammed Salman of Holvi. Closes https://github.com/arthurdejong/python-stdnum/pull/50
* Add support for Montenegro IBAN formatArthur de Jong2018-03-171-0/+7
| | | | | This adds further checks to the country-specific part of the IBAN for Montenegro IBANs.
* Add German SteuernummerArthur de Jong2018-03-111-0/+193
| | | | | | | | | | Based on the implementation provided by Mohammed Salman of Holvi. This is the old tax number that is being replaced by the Steuerliche Identifikationsnummer. The number has a regional form (which is used most often) and a national form. Closes https://github.com/arthurdejong/python-stdnum/pull/49
* Add validation for "individual" part of hetuEsa Halsti2018-03-111-2/+6
| | | | | | | The range between 900 and 999 is reserved for temporary identifiers and is not given to any real person. Closes https://github.com/arthurdejong/python-stdnum/pull/66
* Add check_dgii() to stdnum.do.cedula moduleArthur de Jong2018-02-191-0/+55
| | | | | | | This exposes the stdnum.do.rnc.check_dgii() in the stdnum.do.cedula module with but rename the rnc result entry to cedula. Closes https://github.com/arthurdejong/python-stdnum/issues/63
* Update the flake8 ignore listArthur de Jong2018-02-142-2/+0
| | | | | | | | | | | | Re-enable the flake8 test for unused imports by explicitly marking imports for namespace purposes. This allows us to remove a few unused imports. A few more cleanups that allow us to reduce the number of ignored flake8 ignored tests. The remaining ignored tests are now documented. Ignore a flake8 warning about print statements because we use print in the update scripts.
* Add test for Belgian IBANsArthur de Jong2018-02-111-0/+158
| | | | | | | | | This adds a test for IBANs that were found online together with a BIC code to test the IBAN to swift code mapping. This also supports some extra separators in IBAN and BIC numbers and fixes a check digit calculation issue in the Belgian account number check digits.
* Add support for Belgian IBAN formatArthur de Jong2018-02-101-2/+0
| | | | | | | This adds further checks to the country-specific part of the IBAN for Belgian IBANs. Closes https://github.com/arthurdejong/python-stdnum/issues/62
* Add Indian PANsrikanthlogic2018-01-011-0/+40
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/57
* Add CAS Registry NumberArthur de Jong2017-11-261-0/+105
| | | | This adds validation of the Chemical Abstracts Service Registry Number.
* Fix incorrect banknote testArthur de Jong2017-11-261-1/+2
| | | | | | Also add a few verified correct numbers. Fixes b7b812c.
* Add Euro bank notes serial numberArthur de Jong2017-11-221-0/+72
| | | | This adds validation of serial numbers that appear on Euro bills.
* Add tests for the VIES VAT validation functionsArthur de Jong2017-10-221-0/+49
| | | | | | These tests are not normally run as part of the normal test suite and have to be explicitly enabled by setting the ONLINE_TESTS environment variable to avoid overloading these online services.
* Add stdnum.do.ncf.check_dgii()Arthur de Jong2017-10-221-0/+56
| | | | | | This adds functions for querying the Dirección General de Impuestos Internos (DGII) API to check if the RNC and NCF combination provided is valid.
* Add stdnum.do.rnc.check_dgii() and search_dgii()Arthur de Jong2017-10-221-0/+76
| | | | | | This adds functions for querying the Dirección General de Impuestos Internos (DGII) API to validate the RNC and search the register by keyword.
* Add Dominican Republic receipt number (NCF)Arthur de Jong2017-10-221-0/+159
| | | | | This number does not have a check digit but uses a distinctive enough format that it should not be too great of a problem.
* Also add a whitelist for Dominican Republic RNCArthur de Jong2017-10-141-1/+3
| | | | | | Some RNCs are apparently valid while having an incorrect check digit (though most appear to be inactive). There also appear to be valid RNCs that do not have 9 digits.
* Add a few new numbers to the Cedula whitelistArthur de Jong2017-10-141-0/+1
| | | | | | These numbers were found to be valid but had an invalid check digit nonetheless (though most appear to be inactive). Also there appear to be a few valid Cedula that do not have 11 digits.
* Handle unicode arguments in get_cc_module()David Arnold2017-10-141-0/+19
| | | | Closes https://github.com/arthurdejong/python-stdnum/issues/54
* Fix Czech DIČ check digit calculationArthur de Jong2017-09-081-0/+12
| | | | | | | | This fixes a bug in the check digit calculation for the 9-digit numbers that start with a 6 for individuals without a RČ. This also adds a few tests for Czech VAT numbers. See https://github.com/arthurdejong/python-stdnum/issues/51
* Add Estonian RegistrikoodArthur de Jong2017-09-041-0/+148
| | | | | | | | | This is based on what was done by Mohammed Salman of Holvi. This adds more tests and validates the check digit. This uses the check digit algorithm from Isikukood which seems to work with all tested numbers although there is no confirmation that this is the correct algorithm.
* Add support for German tax id numberMohammed Salman2017-09-031-0/+66
|
* Check bookland code in ISBNArthur de Jong2017-08-301-3/+7
| | | | | | This ensures that an InvalidComponent() exception is raised when an unknown EAN bookland code is found. It will also raise this exception when using to_isbn10() when not using the 978 code.
* Ensure 100% branch coverageArthur de Jong2017-08-282-0/+51
| | | | | | | | | | | This ensures that the tests fail if 100% branch coverage is not achieved. It also adds some pragma statements for code that cannot be covered or is Python version dependent. Furthermore, the get_module_list() function was removed from stdnum.util and more tests were made from stdnum.util and stdnum.numdb. The functionality to call format() in a country-specific IBAN implementation was also dropped because it was not used.
* Add Canadian Business Number (BN)Arthur de Jong2017-08-261-0/+151
|
* Add a few ISBNs found onlineArthur de Jong2017-04-161-0/+210
| | | | | This adds a number of ISBNs found online from various sources to the test suite.
* An ISMN can only be 10 or 13 digitsArthur de Jong2017-04-151-3/+17
| | | | This also adds the test that an ISMN should start with 9790.
* Fix conversion of 9 digit ISBN to ISBN13Arthur de Jong2017-04-151-1/+9
|
* Switch to HTTPS URLsArthur de Jong2017-04-131-2/+2
|
* Add Legal Entity IdentifierArthur de Jong2017-04-101-0/+134
|
* Add Serbian Poreski Identifikacioni BrojArthur de Jong2017-04-101-0/+134
|
* Add European EIC (Energy Identification Code)Arthur de Jong2017-04-011-0/+118
|
* 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 test for Ñ in Referencia CatastralArthur de Jong2017-04-011-1/+23
| | | | | | | | | | | This supports the Referencia Catastral with an Ñ in it for both byte strings (Python 2) and unicode strings (Python 2 and 3). Support for literal unicode strings in Python 2 doctests is flaky so the test is a bit ugly. This also adds a few numbers that were found online. Sadly no real numbers with an Ñ in it have been found so the one in the test was constructed.
* 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.
* Add support for Monaco VAT numberArthur de Jong2017-03-251-1/+25
| | | | | | | The number uses the French TVA number but, unlike normal French VAT numbers, they are not valid French SIREN numbers. See https://github.com/arthurdejong/python-stdnum/issues/46
* Implement CBU (unique bank code) of ArgentinaLuciano Rossi2016-11-151-0/+79
| | | | See https://github.com/arthurdejong/python-stdnum/issues/43
* Add Python 2.6 supportArthur de Jong2016-11-141-1/+1
| | | | | This also brings the list of Python versions in setup.py in line with tox.ini.
* Update database filesArthur de Jong2016-11-131-1/+0
| | | | | | This removes the Costa Rica IBAN test because the format of the IBAN seems to have been changed. The old length still seems to be in use so a more permanent solution is probably required.
* Add Australian Tax File NumberArthur de Jong2016-10-141-0/+42
| | | | | | | Based on the implementation provided by Vincent Bastos <vincent@lavalab.com.au> See https://github.com/arthurdejong/python-stdnum/pull/40
* Add Australian Company NumberArthur de Jong2016-10-141-0/+125
| | | | | | | Based on the implementation provided by Vincent Bastos <vincent@lavalab.com.au> See https://github.com/arthurdejong/python-stdnum/pull/40
* Add Australian Business NumberArthur de Jong2016-10-141-0/+136
| | | | | | | Based on the implementation provided by Vincent Bastos <vincent@lavalab.com.au> See https://github.com/arthurdejong/python-stdnum/pull/40
* Add more tests for Referencia CatastralArthur de Jong2016-09-101-0/+295
| | | | | | | | | | | This adds a number of extra tests for the Spanish Referencia Catastral (stdnum.es.referenciacatastral) module, mostly based on numbers found online. This commit includes some of the documentation on the structure of Referencia Catastral that was in the original pull request. See https://github.com/arthurdejong/python-stdnum/pull/38
* Test a few Spanish IBANs found onlineArthur de Jong2016-09-101-0/+24
|
* Add Spanish IBAN number moduleArthur de Jong2016-09-101-0/+12
| | | | This validates the country-specific part of the IBAN.
* Add Spanish CUPS codeDavid García Garzón2016-09-031-0/+83
|