'''unit tests for ureports.html_writer ''' __revision__ = "$Id: unittest_ureports_html.py,v 1.3 2005-05-27 12:27:08 syt Exp $" from utils import WriterTC from logilab.common.testlib import TestCase, unittest_main from logilab.common.ureports.html_writer import * class HTMLWriterTC(TestCase, WriterTC): def setUp(self): self.writer = HTMLWriter(1) # Section tests ########################################################### section_base = '''
Section\'s description. Blabla bla
Section\'s description.\nBlabla bla
Sub section description
blabla
head1 | \nhead2 | \n
cell1 | \ncell2 | \n
f1 | \nv1 | \n
f22 | \nv22 | \n
f333 | \nv333 | \n
field | \nvalue | \n
---|---|
f1 | \nv1 | \n
f22 | \nv22 | \n
f333 | \nv333 | \n
toi perdu ? | \n\n |
blablabla''' if __name__ == '__main__': unittest_main()