Package logilab :: Package common :: Package test :: Module unittest_tree :: Class Node_ClassTest
[frames] | no frames]

Class Node_ClassTest

source code

       object --+        
                |        
unittest.TestCase --+    
                    |    
     testlib.TestCase --+
                        |
                       Node_ClassTest

a basic tree node, caracterised by an id

Nested Classes

Inherited from testlib.TestCase: pdbclass

Inherited from unittest.TestCase: failureException

Instance Methods
 
setUp(self)
called before each test from this class
source code
 
test_flatten(self) source code
 
test_flatten_with_outlist(self) source code
 
test_known_values_depth(self)
return depth of this node in the tree
source code
 
test_known_values_depth_down(self)
return depth of this node in the tree
source code
 
test_known_values_get_child_by_id(self)
return child of given id
source code
 
test_known_values_get_child_by_path(self)
return child of given path (path is a list of ids)
source code
 
test_known_values_get_node_by_id(self)
return node in whole hierarchy that has given id
source code
 
test_known_values_get_sibling(self)
return the sibling node that has given id
source code
 
test_known_values_leaves(self)
return a list with all the leaf nodes descendant from this task
source code
 
test_known_values_lineage(self) source code
 
test_known_values_remove(self)
remove a child node
source code
 
test_known_values_replace(self)
replace a child node with another
source code
 
test_known_values_root(self)
return the root node of the tree
source code
 
test_known_values_width(self)
return depth of this node in the tree
source code
 
test_raise_get_child_by_id_NodeNotFound(self) source code
 
test_raise_get_child_by_path_NodeNotFound(self) source code
 
test_raise_get_node_by_id_NodeNotFound(self) source code
 
test_raise_get_sibling_NodeNotFound(self) 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__

Class Methods

Inherited from testlib.TestCase: datapath

Class Variables

Inherited from testlib.TestCase: capture

Properties

Inherited from object: __class__

Method Details

setUp(self)

source code 

called before each test from this class

Overrides: unittest.TestCase.setUp