示例#1
0
    def testUsingTestData(self):
        """Test attribute_value_from_string() using test data"""

        attribute_value = saml.attribute_value_from_string(saml2_data.TEST_ATTRIBUTE_VALUE)
        assert attribute_value.text.strip() == self.text
示例#2
0
    def testAccessors(self):
        """Test for AttributeValue accessors"""

        self.attribute_value.text = self.text
        new_attribute_value = saml.attribute_value_from_string(self.attribute_value.to_string())
        assert new_attribute_value.text.strip() == self.text