changeset 89:0121a7ec18b2

Tests for HTML - Don't use unicode
author Bastian Blank <bblank@thinkmo.de>
date Sun, 23 Dec 2012 17:29:52 +0100
parents 2d7b39aaa590
children 77a556fb6e1f
files emeraldtree/tests/test_html.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/emeraldtree/tests/test_html.py	Sun May 20 20:43:53 2012 +0200
+++ b/emeraldtree/tests/test_html.py	Sun Dec 23 17:29:52 2012 +0100
@@ -46,11 +46,11 @@
     assert len(elem) == 0
 
 def test_write():
-    elem = html.HTML(u'<html><br><p></html>')
+    elem = html.HTML('<html><br><p></html>')
     h = serialize(elem, 'html')
     p = serialize(elem, 'polyglot')
     x = serialize(elem, 'xml')
-    assert u'<br><p>' in h
-    assert u'<br /><p></p>' in p
-    assert u'<br /><p />' in x
+    assert '<br><p>' in h
+    assert '<br /><p></p>' in p
+    assert '<br /><p />' in x