test/unittest_uilib.py
changeset 5949 2a273c896a38
parent 5730 784025c15a3c
child 6153 ade53a90ddf1
child 6340 470d8e828fda
--- a/test/unittest_uilib.py	Thu Jul 08 18:48:44 2010 +0200
+++ b/test/unittest_uilib.py	Thu Jul 08 18:59:42 2010 +0200
@@ -142,6 +142,14 @@
         self.assertEquals(uilib.soup2xhtml('hop </html> hop', 'ascii'),
                           'hop  hop')
 
+    def test_js(self):
+        self.assertEquals(str(uilib.js.pouet(1, "2")),
+                          'pouet(1,"2")')
+        self.assertEquals(str(uilib.js.cw.pouet(1, "2")),
+                          'cw.pouet(1,"2")')
+        self.assertEquals(str(uilib.js.cw.pouet(1, "2").pouet(None)),
+                          'cw.pouet(1,"2").pouet(null)')
+
 if __name__ == '__main__':
     unittest_main()