Package logilab :: Package common :: Package test :: Module unittest_ureports_html :: Class HTMLWriterTC
[frames] | no frames]

Class HTMLWriterTC

source code

       object --+        
                |        
unittest.TestCase --+    
                    |    
     testlib.TestCase --+
                        |
       utils.WriterTC --+
                        |
                       HTMLWriterTC

Nested Classes

Inherited from testlib.TestCase: pdbclass

Inherited from unittest.TestCase: failureException

Instance Methods
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code

Inherited from testlib.TestCase: __call__, __init__, assertDictEqual, assertDictEquals, assertDirEqual, assertDirEquals, assertFileEqual, assertFileEquals, assertFloatAlmostEquals, assertIn, assertIs, assertIsInstance, assertIsNot, assertLineEqual, assertLinesEquals, assertListEqual, assertListEquals, assertNone, assertNotIn, assertNotNone, assertRaises, assertSetEqual, assertSetEquals, assertStreamEqual, assertStreamEquals, assertTextEqual, assertTextEquals, assertUnordIterEqual, assertUnordIterEquals, assertUnorderedIterableEqual, assertUnorderedIterableEquals, assertXMLEqualsTuple, assertXMLStringWellFormed, assertXMLWellFormed, captured_output, datadir, defaultTestResult, failUnlessRaises, optval, printonly, quiet_run, set_description, shortDescription, skip, start_capture, stop_capture

Inherited from unittest.TestCase: __eq__, __hash__, __ne__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertTrue, assert_, countTestCases, debug, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, id, run, tearDown

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Inherited from utils.WriterTC: test_advanced_table, test_field_table, test_list, test_nested_list, test_section, test_table, test_verbatim

Class Methods

Inherited from testlib.TestCase: datapath

Class Variables
  advanced_table = '<table class="whatever" id="mytable">\n<tr c...
  field_table = '<table class="field" id="mytable">\n<tr class="...
  list_base = '<ul>\n<li>item1</li>\n<li>item2</li>\n<li>item3</...
  nested_list = '<ul>\n<li><p>blabla<ul>\n<li>1</li>\n<li>2</li>...
  section_base = '<div>\n<h1>Section title</h1>\n<p>Section\'s d...
  section_nested = '<div>\n<h1>Section title</h1>\n<p>Section\'s...
  table_base = '<table>\n<tr class="odd">\n<td>head1</td>\n<td>h...
  verbatim_base = '<pre>blablabla</pre>'

Inherited from testlib.TestCase: capture

Properties

Inherited from object: __class__

Method Details

setUp(self)

source code 

Hook method for setting up the test fixture before exercising it.

Overrides: unittest.TestCase.setUp
(inherited documentation)

Class Variable Details

advanced_table

Value:
'''<table class="whatever" id="mytable">
<tr class="header">
<th>field</th>
<th>value</th>
</tr>
<tr class="even">
<td>f1</td>
<td>v1</td>
...

field_table

Value:
'''<table class="field" id="mytable">
<tr class="odd">
<td>f1</td>
<td>v1</td>
</tr>
<tr class="even">
<td>f22</td>
<td>v22</td>
...

list_base

Value:
'''<ul>
<li>item1</li>
<li>item2</li>
<li>item3</li>
<li>item4</li>
</ul>
'''

nested_list

Value:
'''<ul>
<li><p>blabla<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
</p></li>
<li>an other point</li>
...

section_base

Value:
'''<div>
<h1>Section title</h1>
<p>Section\'s description.
Blabla bla</p></div>
'''

section_nested

Value:
'''<div>
<h1>Section title</h1>
<p>Section\'s description.
Blabla bla</p><div>
<h2>Subsection</h2>
<p>Sub section description</p></div>
</div>
'''

table_base

Value:
'''<table>
<tr class="odd">
<td>head1</td>
<td>head2</td>
</tr>
<tr class="even">
<td>cell1</td>
<td>cell2</td>
...