--- 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()