diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2019-05-08 18:39:43 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2019-05-08 18:39:43 +0200 |
commit | aa5c4207a828b94cfd90b6ecc78566632a324852 (patch) | |
tree | 477b4ca52dab4c833d4e1b64943bca322e699e86 /tests/test_51_client.py | |
parent | 41806ddd7612af238d8637ee51959e58a90d8cc6 (diff) | |
download | pysaml2-aa5c4207a828b94cfd90b6ecc78566632a324852.tar.gz |
update tests with regards to AllowCreate
AllowCreate is not supposed to be present for transient Name IDs.
Diffstat (limited to 'tests/test_51_client.py')
-rw-r--r-- | tests/test_51_client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_51_client.py b/tests/test_51_client.py index 2e2b7f1c..75dd8f75 100644 --- a/tests/test_51_client.py +++ b/tests/test_51_client.py @@ -269,7 +269,7 @@ class TestClient: assert ar.provider_name == "urn:mace:example.com:saml:roland:sp" assert ar.issuer.text == "urn:mace:example.com:saml:roland:sp" nid_policy = ar.name_id_policy - assert nid_policy.allow_create == "false" + assert nid_policy.allow_create is None assert nid_policy.format == saml.NAMEID_FORMAT_TRANSIENT node_requested_attributes = None @@ -1757,7 +1757,7 @@ class TestClientNonAsciiAva: assert ar.provider_name == "urn:mace:example.com:saml:roland:sp" assert ar.issuer.text == "urn:mace:example.com:saml:roland:sp" nid_policy = ar.name_id_policy - assert nid_policy.allow_create == "false" + assert nid_policy.allow_create is None assert nid_policy.format == saml.NAMEID_FORMAT_TRANSIENT node_requested_attributes = None |