Editorial
This commit is contained in:
@@ -43,7 +43,8 @@ CONFIG = {
|
||||
"given_name": "Roland",
|
||||
"sur_name": "Hedberg",
|
||||
"telephone_number": "+46 70 100 0000",
|
||||
"email_address": ["tech@eample.com", "tech@example.org"],
|
||||
"email_address": ["tech@eample.com",
|
||||
"tech@example.org"],
|
||||
"contact_type": "technical"
|
||||
},
|
||||
],
|
||||
|
@@ -1,3 +1,4 @@
|
||||
# coding=utf-8
|
||||
from saml2.authn_context import pword
|
||||
from saml2.mdie import to_dict
|
||||
from saml2 import md, assertion
|
||||
@@ -75,7 +76,6 @@ def test_filter_on_attributes_1():
|
||||
assert ava.keys() == ["serialNumber"]
|
||||
assert ava["serialNumber"] == ["12345"]
|
||||
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
def test_lifetime_1():
|
||||
@@ -255,6 +255,7 @@ def test_filter_attribute_value_assertions_2(AVA):
|
||||
assert _eq(ava.keys(), ["givenName"])
|
||||
assert ava["givenName"] == ["Roland"]
|
||||
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -290,7 +291,9 @@ def test_assertion_1(AVA):
|
||||
|
||||
def test_assertion_2():
|
||||
AVA = {'mail': u'roland.hedberg@adm.umu.se',
|
||||
'eduPersonTargetedID': 'http://lingon.ladok.umu.se:8090/idp!http://lingon.ladok.umu.se:8088/sp!95e9ae91dbe62d35198fbbd5e1fb0976',
|
||||
'eduPersonTargetedID': 'http://lingon.ladok.umu'
|
||||
'.se:8090/idp!http://lingon.ladok.umu'
|
||||
'.se:8088/sp!95e9ae91dbe62d35198fbbd5e1fb0976',
|
||||
'displayName': u'Roland Hedberg',
|
||||
'uid': 'http://roland.hedberg.myopenid.com/'}
|
||||
|
||||
@@ -453,6 +456,7 @@ def test_filter_values_req_opt_2():
|
||||
|
||||
raises(MissingValue, "filter_on_attributes(ava, r, o)")
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -485,6 +489,7 @@ def test_filter_values_req_opt_4():
|
||||
assert _eq(ava.keys(), ['givenName', 'sn'])
|
||||
assert ava == {'givenName': ['Roland'], 'sn': ['Hedberg']}
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user