changeset 63:354ac088cd8d

Tests for QName - Use unicode, remove tests for text property
author Bastian Blank <bblank@thinkmo.de>
date Mon, 03 May 2010 18:30:37 +0200
parents 2461a04b352e
children bd93ebba58ba
files emeraldtree/tests/test_tree.py
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/emeraldtree/tests/test_tree.py	Mon May 03 18:23:32 2010 +0200
+++ b/emeraldtree/tests/test_tree.py	Mon May 03 18:30:37 2010 +0200
@@ -321,21 +321,18 @@
     assert qname.uri is None
     assert qname.name == u'a'
     assert isinstance(qname.name, unicode)
-    assert str(qname) == u'a'
-    assert qname.text == u'a'
+    assert unicode(qname) == u'a'
 
     qname = QName(u'{b}a')
     assert qname.uri == u'b'
     assert isinstance(qname.uri, unicode)
     assert qname.name == u'a'
-    assert str(qname) == u'{b}a'
-    assert qname.text == u'{b}a'
+    assert unicode(qname) == u'{b}a'
 
     qname = QName(u'a', u'b')
     assert qname.uri == u'b'
     assert qname.name == u'a'
-    assert str(qname) == u'{b}a'
-    assert qname.text == u'{b}a'
+    assert unicode(qname) == u'{b}a'
 
     py.test.raises(ValueError, QName, u'{bau')
     py.test.raises(ValueError, QName, u'{b}a', u'c')