equal
deleted
inserted
replaced
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 |