]> git.sesse.net Git - xml-template/commitdiff
Make the Python tests use lists instead of tuples.
authorsgunderson@bigfoot.com <>
Wed, 6 Sep 2006 15:36:22 +0000 (17:36 +0200)
committersgunderson@bigfoot.com <>
Wed, 6 Sep 2006 15:36:22 +0000 (17:36 +0200)
python/attribute.py
python/attribute2.py
python/clone.py

index 0127e806be0e9f843133d0ccab127dfd7f32accc..8a5b95bd231e08bebf4e185a5512ea153c54c38c 100644 (file)
@@ -3,11 +3,11 @@ import xmltemplate
 
 doc = xmltemplate.process_file("../xml/clone.xml", {
        'color': 'blue',
-       '#things': (
+       '#things': [
                { "li": "Raindrops on roses",    "li/class": "even" },
                { "li": "Whiskers on kittens",   "li/class": "odd" },
                { "li": "Bright copper kettles", "li/class": "even" },
                { "li": "Warm, woolen mittens",  "li/class": "odd" }
-       )
+       ]
 })
 print doc.toxml()
index d7caca62fd92024eac110f7fa0f49f6603e9a704..4f25464b6e17932e62a426deda6cc783cfeb394c 100644 (file)
@@ -3,11 +3,11 @@ import xmltemplate
 
 doc = xmltemplate.process_file("../xml/clone.xml", {
        "color": "blue",
-       "#things": xmltemplate.alternate("li/class", (
+       "#things": xmltemplate.alternate("li/class", [
                { "li": "Raindrops on roses" },
                { "li": "Whiskers on kittens" },
                { "li": "Bright copper kettles" },
                { "li": "Warm, woolen mittens"},
-       ), "odd", "even")
+       ], "odd", "even")
 });
 print doc.toxml()
index 65e9519b05e4fb611a15e91a73fbe3c6ea897c9c..134cdb596df48ac614a1ee2c49ade111e042fb59 100644 (file)
@@ -3,11 +3,11 @@ import xmltemplate
 
 doc = xmltemplate.process_file("../xml/clone.xml", {
        'color': 'blue',
-       '#things': (
+       '#things': [
                { 'li': 'Raindrops on roses' },
                { 'li': 'Whiskers on kittens' },
                { 'li': 'Bright copper kettles' },
                { 'li': 'Warm, woolen mittens' }
-       )
+       ]
 })
 print doc.toxml()