diff options
author | Damien Laniel <dlaniel@entrouvert.com> | 2008-01-15 16:43:06 +0000 |
---|---|---|
committer | Damien Laniel <dlaniel@entrouvert.com> | 2008-01-15 16:43:06 +0000 |
commit | adf92755393b70e9c5d07471d8c185b8ce440114 (patch) | |
tree | b8b079a0870f9d5f7c1c1448caedb3f7ce931502 /python/tests/binding_tests.py | |
parent | 462f3f14bab91bb2aefdd52b860e087b291e7f0b (diff) | |
download | lasso-adf92755393b70e9c5d07471d8c185b8ce440114.tar.gz lasso-adf92755393b70e9c5d07471d8c185b8ce440114.tar.xz lasso-adf92755393b70e9c5d07471d8c185b8ce440114.zip |
each value of an multi-valued-attribute go in a different AttributeValue node
Diffstat (limited to 'python/tests/binding_tests.py')
-rwxr-xr-x | python/tests/binding_tests.py | 19 |
1 files changed, 14 insertions, 5 deletions
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): <saml:Attribute Name="second attribute"> <saml:AttributeValue> <XXX>second string</XXX> + </saml:AttributeValue> + <saml:AttributeValue> <XXX>third string</XXX> </saml:AttributeValue> </saml:Attribute> @@ -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 |