Esempio n. 1
0
 def testUsingTestData(self):
     """Test assertion_id_ref_from_string() using test data"""
     new_assertion_id_ref = saml.assertion_id_ref_from_string(saml2_data.TEST_ASSERTION_ID_REF)
     assert new_assertion_id_ref.text.strip() == "zzlieajngjbkjggjldmgindkckkolcblndbghlhm"
Esempio n. 2
0
 def testAccessors(self):
     """Test for AssertionIDRef accessors"""
     self.assertion_id_ref.text = "zzlieajngjbkjggjldmgindkckkolcblndbghlhm"
     new_assertion_id_ref = saml.assertion_id_ref_from_string(self.assertion_id_ref.to_string())
     assert new_assertion_id_ref.text == "zzlieajngjbkjggjldmgindkckkolcblndbghlhm"