Add test for SubjectConfirmation validation.

This commit is contained in:
Andrew Wason
2016-01-28 18:13:46 -05:00
parent 98d3d25331
commit fe07219823

View File

@@ -851,6 +851,13 @@ class TestSubjectConfirmation:
assert sc.subject_confirmation_data.in_response_to == "responseID"
assert sc.subject_confirmation_data.address == "127.0.0.1"
def testVerify(self):
"""Test SubjectConfirmation verify"""
sc = saml.subject_confirmation_from_string(
saml2_data.TEST_SUBJECT_CONFIRMATION)
assert sc.verify()
class TestSubject:
def setup_class(self):