@@ -36,12 +36,14 @@ class TestDGII(unittest.TestCase):
36
36
"""Test the web services provided by the the Dirección General de
37
37
Impuestos Internos (DGII), the Dominican Republic tax department."""
38
38
39
- def setUp (self ):
40
- """Prepare the test."""
41
- # For Python 2.7 compatibility
42
- if not hasattr (self , 'assertRegex' ):
43
- self .assertRegex = self .assertRegexpMatches
44
-
39
+ # Theses tests currently fail because the SOAP service at
40
+ # https://www.dgii.gov.do/wsMovilDGII/WSMovilDGII.asmx?WSDL
41
+ # is no longer available. There is a new one at
42
+ # https://www.dgii.gov.do/ventanillaunica/ventanillaunica.asmx?WSDL
43
+ # but it has a different API and seems to require authentication.
44
+ # See https://github.com/arthurdejong/python-stdnum/pull/462
45
+ # and https://github.com/arthurdejong/python-stdnum/issues/461
46
+ @unittest .expectedFailure
45
47
def test_check_dgii (self ):
46
48
"""Test stdnum.do.rnc.check_dgii()"""
47
49
# Test a normal valid number
@@ -64,6 +66,14 @@ def test_check_dgii(self):
64
66
result = rnc .check_dgii ('132070801' )
65
67
self .assertEqual (result ['rnc' ], '132070801' )
66
68
69
+ # Theses tests currently fail because the SOAP service at
70
+ # https://www.dgii.gov.do/wsMovilDGII/WSMovilDGII.asmx?WSDL
71
+ # is no longer available. There is a new one at
72
+ # https://www.dgii.gov.do/ventanillaunica/ventanillaunica.asmx?WSDL
73
+ # but it has a different API and seems to require authentication.
74
+ # See https://github.com/arthurdejong/python-stdnum/pull/462
75
+ # and https://github.com/arthurdejong/python-stdnum/issues/461
76
+ @unittest .expectedFailure
67
77
def test_search_dgii (self ):
68
78
"""Test stdnum.do.rnc.search_dgii()"""
69
79
# Search for some existing companies
0 commit comments