Example #1
0
 def testAccessors(self):
     """Test for Status accessors"""
     self.status.status_code = samlp.StatusCode()
     self.status.status_message = samlp.StatusMessage()
     self.status.status_detail = samlp.StatusDetail()
     new_status = samlp.status_from_string(self.status.to_string())
     assert isinstance(new_status.status_code, samlp.StatusCode)
     assert isinstance(new_status.status_message, samlp.StatusMessage)
     assert isinstance(new_status.status_detail, samlp.StatusDetail)
Example #2
0
 def setup_class(self):
     self.status_detail = samlp.StatusDetail()