The branch class was designed as part of Issue #1. It is included in the class diagrams that are on this repo.
Notes on the Attributes and Functions
parent, child: A branch is the connection between two nodes. In a tree structure, the node which is farthest from the root node is considered the child of the branch. The node which is closest to the root node is considered the parent of the branch.
split_test: Each branch is associated with a test. split_test is a Split_Test object.
Default-like constructor.
__str__(): Returns the test_as_text string.
__eq__(self, other): returns True if self and other are equal. False otherwise.
__ne__(self, other): returns True if self and other are unequal. False otherwise.
Tasks to Close Issue
[x] Design unit tests for each function of the class. They can be posted as a reply to this issue.
[x] Implement the unit tests using the unittest module.
[x] Implement the class.
[x] Ensure that the class' functions pass their tests.
Prerequisite Issues
Overview of this Issue
The branch class was designed as part of Issue #1. It is included in the class diagrams that are on this repo.
Notes on the Attributes and Functions
split_test
is aSplit_Test
object.Tasks to Close Issue
unittest
module.