def testUsingTestData(self): """Test assertion_uri_ref_from_string() using test data""" new_assertion_uri_ref = saml.assertion_uri_ref_from_string(saml2_data.TEST_ASSERTION_URI_REF) assert new_assertion_uri_ref.text.strip() == "http://www.example.com/AssertionURIRef"
def testAccessors(self): """Test for AssertionURIRef accessors""" self.assertion_uri_ref.text = "http://www.example.com/AssertionURIRef" new_assertion_uri_ref = saml.assertion_uri_ref_from_string(self.assertion_uri_ref.to_string()) assert new_assertion_uri_ref.text == "http://www.example.com/AssertionURIRef"