From adf92755393b70e9c5d07471d8c185b8ce440114 Mon Sep 17 00:00:00 2001 From: Damien Laniel Date: Tue, 15 Jan 2008 16:43:06 +0000 Subject: each value of an multi-valued-attribute go in a different AttributeValue node --- python/tests/binding_tests.py | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'python') diff --git a/python/tests/binding_tests.py b/python/tests/binding_tests.py index 8ac44c40..cc718ff9 100755 --- a/python/tests/binding_tests.py +++ b/python/tests/binding_tests.py @@ -258,6 +258,8 @@ class BindingTestCase(unittest.TestCase): second string + + third string @@ -278,15 +280,22 @@ class BindingTestCase(unittest.TestCase): text_node2 = lasso.MiscTextNode() text_node2.content = attribute2_string + any2 = lasso.NodeList() + any2.append(text_node2) + attribute_value2 = lasso.Saml2AttributeValue() + attribute_value2.any = any2 + text_node3 = lasso.MiscTextNode() text_node3.content = attribute3_string - any1 = lasso.NodeList() - any1.append(text_node2) - any1.append(text_node3) - attribute_value2 = lasso.Saml2AttributeValue() - attribute_value2.any = any1 + any3 = lasso.NodeList() + any3.append(text_node3) + attribute_value3 = lasso.Saml2AttributeValue() + attribute_value3.any = any3 + attribute_values2 = lasso.NodeList() attribute_values2.append(attribute_value2) + attribute_values2.append(attribute_value3) + attribute2 = lasso.Saml2Attribute() attribute2.name = attribute2_name attribute2.attributeValue = attribute_values2 -- cgit