From 9605dbed3accf05c5e698f0d5d4b38a63b57f1c7 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 4 Jan 2020 22:25:25 +0100 Subject: The Italian IVA is also a Codice Fiscale Closes https://github.com/arthurdejong/python-stdnum/issues/180 --- tests/test_it_codicefiscale.doctest | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests') 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. -- cgit v1.2.3