Package logilab :: Package common :: Package test :: Module unittest_ureports_text :: Class TextWriterTC
[frames] | no frames]

Class TextWriterTC

source code

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

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 = '\n+---------------+------+\n|field ...
  field_table = '\nf1 : v1\nf22 : v22\nf333: v333\n'
  list_base = '\n* item1\n* item2\n* item3\n* item4'
  nested_list = '\n* blabla\n - 1\n - 2\n - 3\n\n* an other p...
  section_base = '\nSection title\n=============\nSection\'s des...
  section_nested = '\nSection title\n=============\nSection\'s d...
  table_base = '\n+------+------+\n|head1 |head2 |\n+------+----...
  verbatim_base = '::\n\n blablabla\n\n'

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:
'''
+---------------+------+
|field          |value |
+===============+======+
|f1             |v1    |
+---------------+------+
|f22            |v22   |
+---------------+------+
...

nested_list

Value:
'''
* blabla
  - 1
  - 2
  - 3

* an other point'''

section_base

Value:
'''
Section title
=============
Section\'s description.
Blabla bla

'''

section_nested

Value:
'''
Section title
=============
Section\'s description.
Blabla bla

Subsection
----------
...

table_base

Value:
'''
+------+------+
|head1 |head2 |
+------+------+
|cell1 |cell2 |
+------+------+

'''