test/unittest_uilib.py
changeset 5949 2a273c896a38
parent 5730 784025c15a3c
child 6153 ade53a90ddf1
child 6340 470d8e828fda
equal deleted inserted replaced
5948:4154bdc85fe4 5949:2a273c896a38
   140         self.assertEquals(uilib.soup2xhtml('</html> hop', 'ascii'),
   140         self.assertEquals(uilib.soup2xhtml('</html> hop', 'ascii'),
   141                           ' hop')
   141                           ' hop')
   142         self.assertEquals(uilib.soup2xhtml('hop </html> hop', 'ascii'),
   142         self.assertEquals(uilib.soup2xhtml('hop </html> hop', 'ascii'),
   143                           'hop  hop')
   143                           'hop  hop')
   144 
   144 
       
   145     def test_js(self):
       
   146         self.assertEquals(str(uilib.js.pouet(1, "2")),
       
   147                           'pouet(1,"2")')
       
   148         self.assertEquals(str(uilib.js.cw.pouet(1, "2")),
       
   149                           'cw.pouet(1,"2")')
       
   150         self.assertEquals(str(uilib.js.cw.pouet(1, "2").pouet(None)),
       
   151                           'cw.pouet(1,"2").pouet(null)')
       
   152 
   145 if __name__ == '__main__':
   153 if __name__ == '__main__':
   146     unittest_main()
   154     unittest_main()
   147 
   155