
Retains python2.7 compatibility for all files. Fixes only syntax errors, tests still fail on python3 for various reasons.
15 lines
330 B
Python
15 lines
330 B
Python
from saml2.config import Config
|
|
from saml2.metadata import entity_descriptor
|
|
|
|
__author__ = 'roland'
|
|
|
|
fil = "sp_mdext_conf.py"
|
|
|
|
cnf = Config().load_file(fil, metadata_construction=True)
|
|
ed = entity_descriptor(cnf)
|
|
|
|
print(ed)
|
|
|
|
assert ed.spsso_descriptor.extensions
|
|
assert len(ed.spsso_descriptor.extensions.extension_elements) == 3
|