diff emeraldtree/tests/test_ElementTree.py @ 4:705fc192cd9d

Add new Node class and make it a base of Element. * emeraldtree/ElementTree.py - Add Node. - Make Node a base of Element. - Export Node. * emeraldtree/tests/test_ElementTree.py: Update.
author Bastian Blank <bblank@thinkmo.de>
date Sat, 31 May 2008 15:19:09 +0200
parents 40db0b033d47
children 9b72cb3ef3c9
line wrap: on
line diff
--- a/emeraldtree/tests/test_ElementTree.py	Sat May 31 15:10:47 2008 +0200
+++ b/emeraldtree/tests/test_ElementTree.py	Sat May 31 15:19:09 2008 +0200
@@ -1,4 +1,4 @@
-from emeraldtree.ElementTree import ElementTree, Element
+from emeraldtree.ElementTree import *
 
 def serialize(elem, **options):
     from cStringIO import StringIO
@@ -10,6 +10,7 @@
 def test_Element___init__():
     elem = Element('a')
     assert serialize(elem) == '<a />'
+    assert isinstance(elem, Node)
 
 def test_Element_append():
     elem = Element('a')