class documentation

class TableMakerTests(TestCase): (source)

View In Hierarchy

Tests that ensure tableMaker generates HTML tables usable as labels in DOT graphs.

For more information, read the "HTML-Like Labels" section of http://www.graphviz.org/doc/info/shapes.html.

Method fakeElementMaker Undocumented
Method setUp Undocumented
Method test_inputLabelRow The table returned by tableMaker always contains the input symbol label in its first row, and that row contains one cell with a port attribute set to the provided port.
Method test_noOutputLabels tableMaker does not add a colspan attribute to the input label's cell or a second row if there no output labels.
Method test_withOutputLabels tableMaker adds a colspan attribute to the input label's cell equal to the number of output labels and a second row that contains the output labels.
Instance Variable inputLabel Undocumented
Instance Variable port Undocumented
Instance Variable tableMaker Undocumented
def fakeElementMaker(self, name, *children, **attributes): (source)

Undocumented

def setUp(self): (source)

Undocumented

def test_inputLabelRow(self): (source)

The table returned by tableMaker always contains the input symbol label in its first row, and that row contains one cell with a port attribute set to the provided port.

def test_noOutputLabels(self): (source)

tableMaker does not add a colspan attribute to the input label's cell or a second row if there no output labels.

def test_withOutputLabels(self): (source)

tableMaker adds a colspan attribute to the input label's cell equal to the number of output labels and a second row that contains the output labels.

inputLabel: str = (source)

Undocumented

port: str = (source)

Undocumented

tableMaker = (source)

Undocumented