diff emeraldtree/tests/test_ElementTree.py @ 25:47ae505e63ea

Parse tags and attribute names always in QName. * emeraldtree/ElementTree.py - Add QName.copy. - Force usage of QName in XMLParser. - Don't convert all text to ascii. * emeraldtree/tests/test_ElementTree.py: Check for QName.
author Bastian Blank <bblank@thinkmo.de>
date Sun, 08 Jun 2008 12:09:33 +0200
parents 2015d11467bc
children eeb0eb69c1da
line wrap: on
line diff
--- a/emeraldtree/tests/test_ElementTree.py	Fri Jun 06 22:01:07 2008 +0200
+++ b/emeraldtree/tests/test_ElementTree.py	Sun Jun 08 12:09:33 2008 +0200
@@ -167,6 +167,7 @@
 
 def test_XMLParser_namespace():
     elem = XML('<a:a xmlns:a="a"/>')
+    assert isinstance(elem.tag, QName)
     assert elem.tag == QName('a', 'a')
     assert serialize(elem) == '<ns0:a xmlns:ns0="a" />'