Package test_suite :: Module formatting
[hide private]
[frames] | no frames]

Module formatting

source code

Functions [hide private]
 
subtitle(text)
Function for printing the subtitles.
source code
 
summary_line(name, passed, width=100)
Print a summary line.
source code
 
title(text)
Function for printing the titles.
source code
Variables [hide private]
  __package__ = 'test_suite'

Imports: sys


Function Details [hide private]

subtitle(text)

source code 

Function for printing the subtitles.

Parameters:
  • text (str) - The text of the subtitle to be printed.

summary_line(name, passed, width=100)

source code 

Print a summary line.

Parameters:
  • name (str) - The name of the test, test category, etc.
  • passed (bool or str) - An argument which if True causes '[ OK ]' to be printed and if False causes '[ Failed ]' to be printed. The special string 'skip' is used to indicate that this has been skipped.
  • width (int) - The width of the line, excluding the terminal '[ OK ]' or '[ Failed ]'.

title(text)

source code 

Function for printing the titles.

Parameters:
  • text (str) - The text of the title to be printed.