8000 Add a few ISBNs found online · waldemar-becker/python-stdnum@ed9ac5b · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Mar 4, 2019. It is now read-only.

Commit ed9ac5b

Browse files
committed
Add a few ISBNs found online
This adds a number of ISBNs found online from various sources to the test suite.
1 parent 57c12d8 commit ed9ac5b

File tree

1 file changed

+210
-0
lines changed

1 file changed

+210
-0
lines changed

tests/test_isbn.doctest

Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,213 @@ Regrouping tests.
101101
('979', '', '', '201234567', '8')
102102
>>> isbn.split('5413170121522') # valid checkdigit, unknown prefix
103103
('', '', '', '541317012152', '2')
104+
105+
106+
These have been found online and should all be valid numbers.
107+
108+
>>> numbers = '''
109+
...
110+
... 0-19-963209-X
111+
... 0-201-75041-4
112+
... 0-7503-0197-X
113+
... 0-7506-9275-8
114+
... 0-8412-0473-X
115+
... 0-8493-0464-4
116+
... 0-8493-0504-7
117+
... 0080423906
118+
... 013036004X
119+
... 2-225-30547-1
120+
... 9284401348
121+
... 978-1-4200-4561-1
122+
... 978-1-4200-8032-2
123+
... 978-1-4397-3244-1
124+
... 978-1-4398-2494-8
125+
... 978-1-4398-8929-9
126+
... 978-1-55156-438-8
127+
... 978-90-208-3866-4
128+
... 978-90-208-5330-8
129+
... 978-90-345-0790-7
130+
... 978-90-345-1183-6
131+
... 978-90-345-1341-0
132+
... 978-90-345-2135-4
133+
... 978-90-345-2248-1
134+
... 978-90-345-3025-7
135+
... 978-90-345-3239-8
136+
... 978-90-345-3629-7
137+
... 978-90-345-4767-5
138+
... 978-90-345-4770-5
139+
... 978-90-345-4934-1
140+
... 978-90-345-5216-7
141+
... 978-90-345-5632-5
142+
... 978-90-345-6767-3
143+
... 978-963-88880-5-1
144+
... 9780 8872 76743
145+
... 9780231501132
146+
... 9780231506236
147+
... 9780231507387
148+
... 9780231508360
149+
... 9780231527682
150+
... 9780252092022
151+
... 9780271055206
152+
... 9780271055480
153+
... 9780271056289
154+
... 9780292717664
155+
... 9780292752252
156+
... 9780300058024
157+
... 9780300091960
158+
... 9780300097474
159+
... 9780300110654
160+
... 9780300115406
161+
... 9780300133523
162+
... 9780300156263
163+
... 9780470010037
164+
... 9780470012536
165+
... 9780470026977
166+
... 9780470027257
167+
... 9780470027424
168+
... 9780470058084
169+
... 9780470149676
170+
... 9780470180907
171+
... 9780470317372
172+
... 9780470358139
173+
... 9780470358184
174+
... 9780470358849
175+
... 9780470519578
176+
... 9780470706459
177+
... 9780470707296
178+
... 9780470723807
179+
... 9780470757659
180+
... 9780470760123
181+
... 9780470773154
182+
... 9780470774618
183+
... 9780470841785
184+
... 9780470863343
185+
... 9780470869697
186+
... 9780470987056
187+
... 9780470996027
188+
... 9780471024033
189+
... 9780471206910
190+
... 9780471221951
191+
... 9780471444541
192+
... 9780471445340
193+
... 9780471619772
194+
... 9780471623793
195+
... 9780471713425
196+
... 9780471718161
197+
... 9780471723950
198+
... 9780471740452
199+
... 9780471790594
200+
... 9780520205802
201+
... 9780520217676
202+
... 9780520230453
203+
... 9780520238879
204+
... 9780520238961
205+
... 9780520244306
206+
... 9780520255791
207+
... 9780520911543
208+
... 9780520928572
209+
... 9780520937529
210+
... 9780520939431
211+
... 9780520939769
212+
... 9780520945227
213+
... 9780520945821
214+
... 9780631211532
215+
... 9780631224068
216+
... 9780631225799
217+
... 9780632038961
218+
... 9780674061910
219+
... 9780727917867
220+
... 9780748621651
221+
... 9780748625208
222+
... 9780748633340
223+
... 9780773506688
224+
... 9780773528499
225+
... 9780773528673
226+
... 9780773530843
227+
... 9780773563438
228+
... 9780773563629
229+
... 9780773566217
230+
... 9780773567221
231+
... 9780773570498
232+
... 9780773572966
233+
... 9780773574533
234+
... 9780773582712
235+
... 9780773587861
236+
... 9780801447518
237+
... 9780801467677
238+
... 9780802009685
239+
... 9780802043108
240+
... 9780802078636
241+
... 9780802081544
242+
... 9780802088161
243+
... 9780802096456
244+
... 9780807845837
245+
... 9780807871584
246+
... 9780807871935
247+
... 9780807872192
248+
... 9780815730347
249+
... 9780816604777
250+
... 9780816606597
251+
... 9780816647774
252+
... 9780816655281
253+
... 9780816659760
254+
... 9780816665976
255+
... 9780816681600
256+
... 9780833035202
257+
... 9780833048646
258+
... 9780833059949
259+
... 9780833077851
260+
... 9780871545183
261+
... 9781111525545
262+
... 9781400821600
263+
... 9781400822232
264+
... 9781400826414
265+
... 9781400828623
266+
... 9781400828647
267+
... 9781400840861
268+
... 9781400842483
269+
... 9781400845934
270+
... 9781405131902
271+
... 9781405175791
272+
... 9781442602380
273+
... 9781442612877
274+
... 9781442613140
275+
... 9781442641198
276+
... 9781442644335
277+
... 9781442670174
278+
... 9781442670747
279+
... 9781442674202
280+
... 9781442685376
281+
... 9781442688636
282+
... 9781442693517
283+
... 9781442696716
284+
... 9781469606309
285+
... 9781571136329
286+
... 9781571138392
287+
... 9781610447775
288+
... 9781846156243
289+
... 9783527283217
290+
... 9783527298365
291+
... 9783527305797
292+
... 9783527307258
293+
... 9783527311125
294+
... 9783527406371
295+
... 9783527602803
296+
... 9783527604296
297+
... 9783527606757
298+
... 9783527615186
299+
... 9783527615759
300+
... 9783527619771
301+
... 9783527621781
302+
... 9783826334054
303+
... 9789622091252
304+
... 9789622099760
305+
... 9789814319089
306+
... 9789888052509
307+
... 9789888139590
308+
... 981-02-1046-9
309+
... 9814 253065
310+
...
311+
... '''
312+
>>> [x for x in numbers.splitlines() if x and not isbn.is_valid(x)]
313+
[]

0 commit comments

Comments
0 (0)
0