Skip to content

Commit 034a9f5

Browse files
author
Florent
committed
Tests we keep the user identifier when we create a persistent name_id node.
1 parent 5724de6 commit 034a9f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_33_identifier.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def test_transient_1(self):
9696
assert _eq(nameid.keyswv(), ['text', 'format', 'sp_name_qualifier',
9797
'name_qualifier'])
9898
assert nameid.format == NAMEID_FORMAT_TRANSIENT
99+
assert nameid.text != "foobar"
99100

100101
def test_vo_1(self):
101102
policy = Policy({
@@ -119,7 +120,8 @@ def test_vo_1(self):
119120
'name_qualifier'])
120121
assert nameid.sp_name_qualifier == 'http://vo.example.org/biomed'
121122
assert nameid.format == NAMEID_FORMAT_PERSISTENT
122-
assert nameid.text != "foobar"
123+
# we want to keep the user identifier in the nameid node
124+
assert nameid.text == "foobar"
123125

124126
def test_vo_2(self):
125127
policy = Policy({

0 commit comments

Comments
 (0)