diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2022-10-01 01:02:00 +0300 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2022-10-01 18:19:11 +0300 |
commit | c280a912057a3caa82d0ec3b64bb9d208a28677e (patch) | |
tree | 7a0567d734fd9d27d30964c51f414a2c20328ec9 /tests/test_88_nsprefix.py | |
parent | 3007eb7231a6f4e4006614643e67354698900aef (diff) | |
download | pysaml2-c280a912057a3caa82d0ec3b64bb9d208a28677e.tar.gz |
Format code with black and isort
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'tests/test_88_nsprefix.py')
-rw-r--r-- | tests/test_88_nsprefix.py | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/tests/test_88_nsprefix.py b/tests/test_88_nsprefix.py index 4f652a54..5b790f23 100644 --- a/tests/test_88_nsprefix.py +++ b/tests/test_88_nsprefix.py @@ -1,10 +1,12 @@ -from saml2.saml import NAMEID_FORMAT_TRANSIENT -from saml2.client import Saml2Client -from saml2 import config, BINDING_HTTP_POST +from saml2 import BINDING_HTTP_POST +from saml2 import config from saml2 import saml from saml2 import samlp +from saml2.client import Saml2Client +from saml2.saml import NAMEID_FORMAT_TRANSIENT + -__author__ = 'roland' +__author__ = "roland" def test_nsprefix(): @@ -15,8 +17,7 @@ def test_nsprefix(): assert "ns0:StatusMessage" in txt - status_message.register_prefix({"saml2": saml.NAMESPACE, - "saml2p": samlp.NAMESPACE}) + status_message.register_prefix({"saml2": saml.NAMESPACE, "saml2p": samlp.NAMESPACE}) txt = "%s" % status_message @@ -33,13 +34,16 @@ def test_nsprefix2(): destination = client._sso_location(selected_idp, BINDING_HTTP_POST) reqid, req = client.create_authn_request( - destination, nameid_format=NAMEID_FORMAT_TRANSIENT, - nsprefix={"saml2": saml.NAMESPACE, "saml2p": samlp.NAMESPACE}) + destination, + nameid_format=NAMEID_FORMAT_TRANSIENT, + nsprefix={"saml2": saml.NAMESPACE, "saml2p": samlp.NAMESPACE}, + ) txt = "%s" % req assert "saml2p:AuthnRequest" in txt assert "saml2:Issuer" in txt + if __name__ == "__main__": - test_nsprefix2()
\ No newline at end of file + test_nsprefix2() |