Skip to content

Commit fe07219

Browse files
committed
Add test for SubjectConfirmation validation.
1 parent 98d3d25 commit fe07219

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_02_saml.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,13 @@ def testUsingTestData(self):
851851
assert sc.subject_confirmation_data.in_response_to == "responseID"
852852
assert sc.subject_confirmation_data.address == "127.0.0.1"
853853

854+
def testVerify(self):
855+
"""Test SubjectConfirmation verify"""
856+
857+
sc = saml.subject_confirmation_from_string(
858+
saml2_data.TEST_SUBJECT_CONFIRMATION)
859+
assert sc.verify()
860+
854861

855862
class TestSubject:
856863
def setup_class(self):

0 commit comments

Comments
 (0)