Skip to content

Commit 006192e

Browse files
committed
Add test for duplicate country codes in vatin
Related to #420
1 parent 5fd7498 commit 006192e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_vatin.doctest

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,9 @@ Check for VAT numbers that cannot be compacted without EU prefix:
102102
True
103103
>>> vatin.compact('EU191849184')
104104
'EU191849184'
105+
106+
107+
Check seemingly double country codes are handled correctly:
108+
109+
>>> vatin.validate('MX MXDE 111111 GR2') # the second "MX" is part of the number
110+
'MXMXDE111111GR2'

0 commit comments

Comments
 (0)