armi.utils.tests.test_tabulate module
Tests for tabulate.
This file started out as the MIT-licensed “tabulate”. Though we have made, and will continue to make many arbitrary changes as we need. Thanks to the tabulate team.
https://github.com/astanin/python-tabulate
- class armi.utils.tests.test_tabulate.TestTabulateAPI(methodName='runTest')[source]
Bases:
TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- class armi.utils.tests.test_tabulate.TestTabulateInputs(methodName='runTest')[source]
Bases:
TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_iterableOfIterablesFirstrow()[source]
Input: an interable of iterables with the first row as headers.
- class armi.utils.tests.test_tabulate.TestTabulateInternal(methodName='runTest')[source]
Bases:
TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_alignColumnDecimalWithIncorrectThousandSeparators()[source]
Internal: _align_column(…, ‘decimal’).
- test_alignCellVeriticallyOneLineOnly()[source]
Internal: Aligning a single height cell is same regardless of alignment value.
- test_alignCellVeriticallyTopSingleTextMultiplePad()[source]
Internal: Align single cell text to top.
- test_alignCellVeriticallyCenterSingleTextMultiplePad()[source]
Internal: Align single cell text to center.
- test_alignCellVeriticallyBottomSingleTextMultiplePad()[source]
Internal: Align single cell text to bottom.
- test_alignCellVeriticallyTopMultiTextMultiplePad()[source]
Internal: Align multiline celltext text to top.
- test_alignCellVeriticallyCenterMultiTextMultiplePad()[source]
Internal: Align multiline celltext text to center.
- test_alignCellVeriticallyBottomMultiTextMultiplePad()[source]
Internal: Align multiline celltext text to bottom.
- test_assortedRareEdgeCases()[source]
Test some of the more rare edge cases in the purely internal functions.
- class armi.utils.tests.test_tabulate.TestTabulateOutput(methodName='runTest')[source]
Bases:
TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_plainMultilineWithEmptyCells()[source]
Output: plain with multiline cells and empty cells with headers.
- test_plainMultilineWithEmptyCellsHeaderless()[source]
Output: plain with multiline cells and empty cells without headers.
- test_plainMaxcolwidthAutowraps()[source]
Output: maxcolwidth will result in autowrapping longer cells.
- test_plainMaxcolwidthAutowrapsWithSep()[source]
Output: maxcolwidth will result in autowrapping longer cells and separating line.
- test_maxColWidthsingleValue()[source]
Output: maxcolwidth can be specified as a single number that works for each column.
- test_maxcolwidthPadTailingWidths()[source]
Output: maxcolwidth, if only partly specified, pads tailing cols with None.
- test_maxcolwidthHonorDisableParsenum()[source]
Output: Using maxcolwidth in conjunction with disable_parsenum is honored.
- test_plainmaxHeaderColWidthsAutowraps()[source]
Output: maxHeaderColWidths will result in autowrapping header cell.
- test_simpleMultilineWithLinks()[source]
Output: simple with multiline cells with links and headers.
- test_simpleMultilineWithEmptyCells()[source]
Output: simple with multiline cells and empty cells with headers.
- test_simpleMultilineWithEmptyCellsHeaderless()[source]
Output: simple with multiline cells and empty cells without headers.
- test_gridMultilineWithEmptyCells()[source]
Output: grid with multiline cells and empty cells with headers.
- test_gridMultilineWithEmptyCellsHeaderless()[source]
Output: grid with multiline cells and empty cells without headers.
- test_prettyMultilineWithEmptyCells()[source]
Output: pretty with multiline cells and empty cells with headers.
- test_prettyMultilineWithEmptyCellsHeaderless()[source]
Output: pretty with multiline cells and empty cells without headers.
- test_rstMultilineWithEmptyCells()[source]
Output: rst with multiline cells and empty cells with headers.
- test_rstMultilineWithEmptyCellsHeaderless()[source]
Output: rst with multiline cells and empty cells without headers.
- test_columnGlobalAndSpecificAlignment()[source]
Test colGlobalAlign and “global” parameter for colAlign.
- test_missingValMulti()[source]
Output: substitution of missing values with different values per column.
- test_listOfListsWithIndexFirstrow()[source]
Output: a table with a running index and header=’firstrow’.
- test_disableNumParseDefault()[source]
Output: Default table output with number parsing and alignment.