Merge pull request #307 from rectalogic/astime
'AsTime' validator should be 'dateTime'
This commit is contained in:
@@ -441,7 +441,7 @@ class SubjectConfirmationDataType_(SamlBase):
|
||||
c_attributes = SamlBase.c_attributes.copy()
|
||||
c_child_order = SamlBase.c_child_order[:]
|
||||
c_cardinality = SamlBase.c_cardinality.copy()
|
||||
c_attributes['NotBefore'] = ('not_before', 'AsTime', False)
|
||||
c_attributes['NotBefore'] = ('not_before', 'dateTime', False)
|
||||
c_attributes['NotOnOrAfter'] = ('not_on_or_after', 'dateTime', False)
|
||||
c_attributes['Recipient'] = ('recipient', 'anyURI', False)
|
||||
c_attributes['InResponseTo'] = ('in_response_to', 'NCName', False)
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user