Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_isbn.doctest
Commit message (Collapse)AuthorAgeFilesLines
* Fix remaining issue with encodingArthur de Jong2019-05-041-3/+4
| | | | | | | This also sets the python 2.6 interpreter explicityly because sometimes tox seems to get the wrong one. Fixes 680a95f
* Re-add Python 2.6 supportArthur de Jong2019-04-301-2/+2
| | | | Fixes 48ff92e
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-291-1/+13
| | | | | | | | | | | 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
* 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.
* 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.
* Fix conversion of 9 digit ISBN to ISBN13Arthur de Jong2017-04-151-1/+9
|
* Implement validate() for ISBNArthur de Jong2013-06-081-11/+23
|
* implement a conversion function from ISBN13 to ISBN10Arthur de Jong2011-09-201-0/+20
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@80 9dea7c4f-944c-4273-ac1a-574ede026edc
* fix space before inline commentsArthur de Jong2011-09-201-6/+6
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@79 9dea7c4f-944c-4273-ac1a-574ede026edc
* fix a problem with an ISBN13 with a valid check digit ↵Arthur de Jong2011-09-201-0/+2
| | | | | | but with an unknown bookland prefix git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@78 9dea7c4f-944c-4273-ac1a-574ede026edc
* move all robustness tests into one test fileArthur de Jong2011-02-051-20/+0
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@58 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a convert parameter to most isbn functions to ↵Arthur de Jong2011-01-211-1/+3
| | | | | | automatically convert to ISBN-13 git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@53 9dea7c4f-944c-4273-ac1a-574ede026edc
* implement a new numdb module to hold information on ↵Arthur de Jong2010-11-241-79/+0
| | | | | | hierarchically organised numbers and switch the isbn module to use this format instead git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@42 9dea7c4f-944c-4273-ac1a-574ede026edc
* simplify ranges tests a bitArthur de Jong2010-08-211-7/+8
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@32 9dea7c4f-944c-4273-ac1a-574ede026edc
* write some more tests (some of which are a bit of a ↵Arthur de Jong2010-08-201-0/+58
| | | | | | hack) to get coverage to 100% git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@29 9dea7c4f-944c-4273-ac1a-574ede026edc
* add more doctests that are not part of the module ↵Arthur de Jong2010-08-141-0/+99
documentation git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@19 9dea7c4f-944c-4273-ac1a-574ede026edc