diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2020-01-04 22:25:25 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2020-01-05 14:45:24 +0100 |
commit | 9605dbed3accf05c5e698f0d5d4b38a63b57f1c7 (patch) | |
tree | 99dcd676c84751e5de42af61ad552e9815ea519c /tests | |
parent | 087c668560148de86084b247c4dffafb19f5c3fe (diff) |
The Italian IVA is also a Codice Fiscale
Closes https://github.com/arthurdejong/python-stdnum/issues/180
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_it_codicefiscale.doctest | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test_it_codicefiscale.doctest b/tests/test_it_codicefiscale.doctest index 0dc033a..81b8b38 100644 --- a/tests/test_it_codicefiscale.doctest +++ b/tests/test_it_codicefiscale.doctest @@ -2,7 +2,7 @@ test_it_codicefiscale.doctest - tests for the stdnum.it.codicefiscale module Copyright (C) 2009-2013 Emanuele Rocca Copyright (C) 2014 Augusto Destrero -Copyright (C) 2014 Arthur de Jong +Copyright (C) 2014-2020 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 @@ -89,6 +89,10 @@ datetime.date(1945, 3, 12) datetime.date(1945, 3, 12) >>> codicefiscale.get_birth_date('MRTNTN23M02D969P') datetime.date(1923, 8, 2) +>>> codicefiscale.get_birth_date('00743110157') # only for personal numbers +Traceback (most recent call last): + ... +InvalidComponent: ... Test getting the gender. @@ -107,6 +111,10 @@ Test getting the gender. 'M' >>> codicefiscale.get_gender('MAILCU91A25F839D') 'M' +>>> codicefiscale.get_gender('00743110157') # only for personal numbers +Traceback (most recent call last): + ... +InvalidComponent: ... Test calculating the check digit. |