diff --git a/tests/test_schema_validator.py b/tests/test_schema_validator.py index 9f0aab996..ee1335832 100644 --- a/tests/test_schema_validator.py +++ b/tests/test_schema_validator.py @@ -1,7 +1,11 @@ from pathutils import full_path as expand_full_path + from pytest import mark from pytest import raises +from saml2 import create_class_from_xml_string +from saml2.saml import AttributeStatement +from saml2.sigver import validate_doc_with_schema from saml2.xml.schema import XMLSchemaError from saml2.xml.schema import validate as validate_doc_with_schema @@ -86,3 +90,20 @@ def test_valid_saml_partial_doc(doc): def test_valid_eidas_saml_response_doc(doc): result = validate_doc_with_schema(expand_full_path(doc)) assert result == None + + +def test_namespace_processing(): + elem = create_class_from_xml_string( + AttributeStatement, + """ + + + alum11 + + + + + + """, + ) + validate_doc_with_schema(str(elem))