changeset 67:47b1c1aa1a2b

Tests for Tree - Use node write support
author Bastian Blank <bblank@thinkmo.de>
date Sun, 30 May 2010 17:28:59 +0200
parents 048d2f8de762
children d7e235461c97
files emeraldtree/tests/test_tree.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/emeraldtree/tests/test_tree.py	Sun May 30 17:28:19 2010 +0200
+++ b/emeraldtree/tests/test_tree.py	Sun May 30 17:28:59 2010 +0200
@@ -4,7 +4,7 @@
 def serialize(elem, namespaces={}):
     from StringIO import StringIO
     file = StringIO()
-    XMLWriter(namespaces=namespaces).write(file.write, elem)
+    elem.write(file.write, namespaces=namespaces)
     return file.getvalue()
 
 def test_Element():