Skip to content

Commit

Permalink
Update EU VAT Vies test with new number
Browse files Browse the repository at this point in the history
The number used before was apparently no longer valid.
  • Loading branch information
arthurdejong committed Aug 15, 2022
1 parent 5bcc460 commit e40c827
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/test_eu_vat.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ class TestVies(unittest.TestCase):

def test_check_vies(self):
"""Test stdnum.eu.vat.check_vies()"""
result = vat.check_vies('BE555445')
self.assertEqual(result['countryCode'], 'BE')
self.assertEqual(result['vatNumber'], '555445')
result = vat.check_vies('NL4495445B01')
self.assertTrue(result['valid'])
self.assertEqual(result['countryCode'], 'NL')
self.assertEqual(result['vatNumber'], '004495445B01')

def test_check_vies_approx(self):
"""Test stdnum.eu.vat.check_vies_approx()"""
result = vat.check_vies_approx('BE555445', 'BE555445')
self.assertEqual(result['countryCode'], 'BE')
self.assertEqual(result['vatNumber'], '555445')
result = vat.check_vies_approx('NL4495445B01', 'NL4495445B01')
self.assertTrue(result['valid'])
self.assertEqual(result['countryCode'], 'NL')
self.assertEqual(result['vatNumber'], '004495445B01')

0 comments on commit e40c827

Please sign in to comment.