Skip to content

Commit d470eb3

Browse files
committed
Adjust tests/test_02_saml.py
1 parent e7f18c4 commit d470eb3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_02_saml.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,13 @@ def test_make_vals_multi_dict(self):
225225
def test_to_string_nspair(self):
226226
foo = saml2.make_vals("lions", AttributeValue, part=True)
227227
txt = foo.to_string().decode('utf-8')
228-
nsstr = foo.to_string({"saml": saml.NAMESPACE}).decode('utf-8')
228+
nsstr = foo.to_string({"saml2": saml.NAMESPACE}).decode('utf-8')
229229
assert nsstr != txt
230230
print(txt)
231231
print(nsstr)
232-
assert "saml:AttributeValue" in nsstr
233-
assert "saml:AttributeValue" not in txt
232+
assert "saml2:AttributeValue" in nsstr
233+
assert "saml2:AttributeValue" not in txt
234+
assert "saml:AttributeValue" in txt
234235

235236
def test_set_text_empty(self):
236237
av = AttributeValue()

0 commit comments

Comments
 (0)