summaryrefslogtreecommitdiff
path: root/tests/test_50_server.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2015-11-02 10:22:58 -0800
committerRoland Hedberg <roland.hedberg@adm.umu.se>2015-11-02 10:22:58 -0800
commit86dec17d1f858f37f1f037a21709e2eb14cba7d6 (patch)
tree80f4c4f72030084c8c767d2718692f75bc3a5214 /tests/test_50_server.py
parentb40dfabc4403c15c9c64204e34f81fdedb038db0 (diff)
downloadpysaml2-86dec17d1f858f37f1f037a21709e2eb14cba7d6.tar.gz
Fixed name_format bug. Modified test to check for name_format specification.
Diffstat (limited to 'tests/test_50_server.py')
-rw-r--r--tests/test_50_server.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_50_server.py b/tests/test_50_server.py
index c43d489b..21703b53 100644
--- a/tests/test_50_server.py
+++ b/tests/test_50_server.py
@@ -271,7 +271,7 @@ class TestServer1():
def test_sso_response_with_identity(self):
name_id = self.server.ident.transient_nameid(
- "urn:mace:example.com:saml:roland:sp", "id12")
+ "https://example.com/sp", "id12")
resp = self.server.create_authn_response(
{
"eduPersonEntitlement": "Short stop",
@@ -282,7 +282,7 @@ class TestServer1():
},
"id12", # in_response_to
"http://localhost:8087/", # destination
- "urn:mace:example.com:saml:roland:sp", # sp_entity_id
+ "https://example.com/sp", # sp_entity_id
name_id=name_id,
authn=AUTHN
)
@@ -310,8 +310,8 @@ class TestServer1():
if attr.friendly_name == "givenName":
break
assert len(attr.attribute_value) == 1
- assert attr.name == "urn:oid:2.5.4.42"
- assert attr.name_format == "urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
+ assert attr.name == "urn:mace:dir:attribute-def:givenName"
+ assert attr.name_format == "urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
value = attr.attribute_value[0]
assert value.text.strip() == "Derek"
assert value.get_type() == "xs:string"