test_tr_tckimlik.doctest - more detailed doctests for stdnum.tr.tckimlik Copyright (C) 2016 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA This file contains more detailed doctests for the stdnum.tr.tckimlik module. >>> from stdnum.tr import tckimlik These have been found online and should all be valid numbers. >>> numbers = ''' ... ... 10010405214 ... 10036951702 ... 10048987300 ... 10211782428 ... 10328097460 ... 10406257588 ... 10634889650 ... 10942702016 ... 10945940248 ... 10964454474 ... 11015620602 ... 11051965132 ... 11272211322 ... 11510943206 ... 11521565534 ... 11629545766 ... 11678091474 ... 11678588622 ... 11856036426 ... 12245687724 ... 12254905536 ... 12281024156 ... 12629254764 ... 12668958814 ... 12691048056 ... 12743195844 ... 12790164022 ... 12797231260 ... 13159065448 ... 13195732540 ... 13267669224 ... 13331822036 ... 13466947000 ... 13481622074 ... 13649294334 ... 13684258322 ... 13700315886 ... 13789534246 ... 13796225410 ... 14693160156 ... 14834750260 ... 14953629638 ... 15038532782 ... 15076154212 ... 16130649606 ... 16168925222 ... 16412902252 ... 16834076296 ... 16910960518 ... 17311901384 ... 17690240920 ... 18164076700 ... 18535119968 ... 18563796476 ... 18737290298 ... 18766481124 ... 18986317036 ... 19261708150 ... 19304490066 ... 19315991200 ... 19594888024 ... 19649559862 ... 19736210324 ... 19946754342 ... 20923453974 ... 21289134606 ... 22508375282 ... 22514314664 ... 22645425550 ... 22850263862 ... 23128444884 ... 23761367960 ... 23776369980 ... 23803533490 ... 23812308782 ... 23893394292 ... 23945549168 ... 24118906764 ... 24721853608 ... 25171067942 ... 25175346104 ... 25262304970 ... 26465047138 ... 26912437970 ... 27085445038 ... 27352676660 ... 27806346354 ... 27977266680 ... 28040246264 ... 28196469500 ... 28423494398 ... 29008505256 ... 29449926498 ... 29458830458 ... 29660083116 ... 29663288082 ... 29717351038 ... 30229834674 ... 30517382986 ... 30547067204 ... 30713063856 ... 30841564102 ... 31177269242 ... 31261062360 ... 31378085252 ... 31666319410 ... 31972018304 ... 32080659878 ... 32191139436 ... 32276435798 ... 32362147840 ... 32383033566 ... 32806023532 ... 32986865670 ... 33163817956 ... 33370005450 ... 33632324534 ... 33869149092 ... 34399824114 ... 34411781920 ... 34837267190 ... 35209878136 ... 35389844082 ... 35467790720 ... 35740345494 ... 35927206914 ... 35944794678 ... 36412601542 ... 36799571254 ... 37474709214 ... 37561226518 ... 37708357112 ... 37987046004 ... 38065982832 ... 38312029198 ... 38491580480 ... 38818946524 ... 39346988482 ... 39433505530 ... 39488099268 ... 39556079970 ... 39872148282 ... 40285129270 ... 40429332580 ... 41116624858 ... 41314615566 ... 41537123152 ... 41740577612 ... 42529353182 ... 42568749892 ... 42679341534 ... 43198351554 ... 43282542684 ... 43609945662 ... 43846057142 ... 43879752656 ... 44815212906 ... 45358790944 ... 45577460604 ... 46162064740 ... 46186184424 ... 46786024366 ... 47248345760 ... 47353662028 ... 48064083294 ... 48637402194 ... 48637792714 ... 48883810224 ... 49432850678 ... 49636373966 ... 49879800274 ... 50035230828 ... 50479247086 ... 51508004946 ... 51532505860 ... 51865395732 ... 53320726198 ... 53728014842 ... 54439040694 ... 54508382038 ... 54541189670 ... 54781681538 ... 55996400266 ... 56698147152 ... 57025178016 ... 57061155224 ... 59020072634 ... 59464150004 ... 59599009130 ... 59605521564 ... 61579176350 ... 61957262828 ... 62077362474 ... 62224350880 ... 62512131214 ... 63352195206 ... 64756048358 ... 68536141048 ... 69844021374 ... 71467095762 ... ... ''' >>> [x for x in numbers.splitlines() if x and not tckimlik.is_valid(x)] []