Author: bree
Date: Sun Jan 29 14:22:00 2006
New Revision: 2234

Modified:
   azax/trunk/tests/test_azaxresponse.py
Log:
fix tests

Modified: azax/trunk/tests/test_azaxresponse.py
==============================================================================
--- azax/trunk/tests/test_azaxresponse.py       (original)
+++ azax/trunk/tests/test_azaxresponse.py       Sun Jan 29 14:22:00 2006
@@ -43,7 +43,11 @@
 
     def test_str_(self):
         ob = AzaxResponse()
-        self.assertEquals(self.cleanupXMLForTesting(str(ob)), '<commands/>')
+        result = HTML_DTD + \
+            '\n<html xmlns="http://www.w3.org/1999/xhtml"; 
xmlns:kukit="http://www.kukit.org/commands/1.0";>' \
+            '<body></body></html>'
+        self.assertEquals(self.cleanupXMLForTesting(str(ob)), result)
+        
     
     def assertXMLEquals(self, a, b):
         etree = config.etree
@@ -65,11 +69,12 @@
     def test_setHtmlAsChildTextPlusEntity(self):
         ob = AzaxResponse()
         ob.setHtmlAsChild('div.class', '&nbsp;')
-        result = HTML_DTD + '<html '\
-          'xmlns:kukit="http://www.kukit.org/commands/1.0";><body>' \
-          '<kukit:command selector="div.class" name="setHtmlAsChild">' \
-          '<kukit:param name="html">&#160;</kukit:param></kukit:command>' \
-          '</body></html>'
+        result = HTML_DTD + \
+          '<html ' \
+          'xmlns="http://www.w3.org/1999/xhtml"; 
xmlns:kukit="http://www.kukit.org/commands/1.0";>' \
+          '<body><kukit:command selector="div.class" name="setHtmlAsChild">' \
+          '<kukit:param 
name="html"></kukit:param></kukit:command></body></html>'
+          
         self.assertXMLEquals(self.cleanupXMLForTesting(str(ob)), result)
 
     def xtest_setHtmlAsChildTextOnly(self):
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to