From 02c651cea260658afa55794551640297c2de5f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Wed, 1 Jul 2015 10:29:26 +0200 Subject: [PATCH] add failing recursive XSD import test --- tests/test_suds.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/test_suds.py b/tests/test_suds.py index c0c7edc..87baa46 100644 --- a/tests/test_suds.py +++ b/tests/test_suds.py @@ -30,6 +30,7 @@ if __name__ == "__main__": testutils.run_using_pytest(globals()) import suds +import suds.store from testutils.compare_sax import CompareSAX import pytest @@ -2029,6 +2030,25 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> ("DoesNotExist", "OMG")) +@pytest.mark.xfail +def test_recursive_XSD_import(): + url_xsd = "suds://xsd" + xsd = b("""\ + + + +""" % dict(url_imported=url_xsd)) + wsdl = b("""\ + + + +""" % dict(url_imported=url_xsd)) + store = suds.store.DocumentStore(xsd=xsd) + testutils.client_from_wsdl(wsdl, documentStore=store) + + def _assert_dynamic_type(anObject, typename): assert anObject.__module__ == suds.sudsobject.__name__ assert anObject.__metadata__.sxtype.name == typename